Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 11 |
|
0.00% |
0 / 11 |
CRAP | |
0.00% |
0 / 1 |
PersistentVisitorAdapter | |
0.00% |
0 / 11 |
|
0.00% |
0 / 11 |
132 | |
0.00% |
0 / 1 |
visitLanguage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
visitManuscript | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
visitManuscriptDomain | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
visitManuscriptPrompt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
visitRecording | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
visitRecordingAnnotations | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
visitRecordingReview | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
visitSkippedManuscriptPrompt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
visitUser | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
visitUserDialect | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
visitUserLanguageProficiencyLevel | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\WikispeechSpeechDataCollector\Domain; |
4 | |
5 | /** |
6 | * @file |
7 | * @ingroup Extensions |
8 | * @license GPL-2.0-or-later |
9 | */ |
10 | |
11 | use LogicException; |
12 | |
13 | /** |
14 | * An adapter pattern with no actual implementations on top of the persistent visitor. |
15 | * For use with those implementations that only add support for some of the persistent subclasses. |
16 | * |
17 | * Throws an exception on any non overridden invocation. |
18 | * @phan-file-suppress PhanPluginNeverReturnMethod |
19 | * |
20 | * @since 0.1.0 |
21 | */ |
22 | abstract class PersistentVisitorAdapter implements PersistentVisitor { |
23 | |
24 | /** |
25 | * @inheritDoc |
26 | */ |
27 | public function visitLanguage( |
28 | Language $language |
29 | ) { |
30 | throw new LogicException( 'Not implemented' ); |
31 | } |
32 | |
33 | /** |
34 | * @inheritDoc |
35 | */ |
36 | public function visitManuscript( |
37 | Manuscript $manuscript |
38 | ) { |
39 | throw new LogicException( 'Not implemented' ); |
40 | } |
41 | |
42 | /** |
43 | * @inheritDoc |
44 | */ |
45 | public function visitManuscriptDomain( |
46 | ManuscriptDomain $manuscriptDomain |
47 | ) { |
48 | throw new LogicException( 'Not implemented' ); |
49 | } |
50 | |
51 | /** |
52 | * @inheritDoc |
53 | */ |
54 | public function visitManuscriptPrompt( |
55 | ManuscriptPrompt $manuscriptPrompt |
56 | ) { |
57 | throw new LogicException( 'Not implemented' ); |
58 | } |
59 | |
60 | /** |
61 | * @inheritDoc |
62 | */ |
63 | public function visitRecording( |
64 | Recording $recording |
65 | ) { |
66 | throw new LogicException( 'Not implemented' ); |
67 | } |
68 | |
69 | /** |
70 | * @inheritDoc |
71 | */ |
72 | public function visitRecordingAnnotations( |
73 | RecordingAnnotations $recordingAnnotations |
74 | ) { |
75 | throw new LogicException( 'Not implemented' ); |
76 | } |
77 | |
78 | /** |
79 | * @inheritDoc |
80 | */ |
81 | public function visitRecordingReview( |
82 | RecordingReview $recordingReview |
83 | ) { |
84 | throw new LogicException( 'Not implemented' ); |
85 | } |
86 | |
87 | /** |
88 | * @inheritDoc |
89 | */ |
90 | public function visitSkippedManuscriptPrompt( |
91 | SkippedManuscriptPrompt $skippedManuscriptPrompt |
92 | ) { |
93 | throw new LogicException( 'Not implemented' ); |
94 | } |
95 | |
96 | /** |
97 | * @inheritDoc |
98 | */ |
99 | public function visitUser( |
100 | User $user |
101 | ) { |
102 | throw new LogicException( 'Not implemented' ); |
103 | } |
104 | |
105 | /** |
106 | * @inheritDoc |
107 | */ |
108 | public function visitUserDialect( |
109 | UserDialect $userDialect |
110 | ) { |
111 | throw new LogicException( 'Not implemented' ); |
112 | } |
113 | |
114 | /** |
115 | * @inheritDoc |
116 | */ |
117 | public function visitUserLanguageProficiencyLevel( |
118 | UserLanguageProficiencyLevel $languageProficiencyLevel |
119 | ) { |
120 | throw new LogicException( 'Not implemented' ); |
121 | } |
122 | } |