1 | <?php |
||
15 | class LanguageLinkAnnotator { |
||
16 | |||
17 | /** |
||
18 | * @var ParserData |
||
19 | */ |
||
20 | private $parserData; |
||
21 | |||
22 | /** |
||
23 | * @since 1.0 |
||
24 | * |
||
25 | * @param ParserData $parserData |
||
26 | */ |
||
27 | 8 | public function __construct( ParserData $parserData ) { |
|
30 | |||
31 | /** |
||
32 | * @since 1.0 |
||
33 | * |
||
34 | * @param InterlanguageLink $interlanguageLink |
||
35 | * |
||
36 | * @return boolean |
||
37 | */ |
||
38 | 4 | public function hasDifferentLanguageAnnotation( InterlanguageLink $interlanguageLink ) { |
|
39 | |||
40 | 4 | $propertyValues = $this->parserData->getSemanticData()->getPropertyValues( |
|
41 | 4 | new DIProperty( PropertyRegistry::SIL_CONTAINER ) |
|
42 | ); |
||
43 | |||
44 | 4 | foreach ( $propertyValues as $value ) { |
|
45 | 1 | if ( $value->getSubobjectname() !== $interlanguageLink->getContainerId() ) { |
|
46 | 1 | return true; |
|
47 | } |
||
48 | } |
||
49 | |||
50 | 3 | return false; |
|
51 | } |
||
52 | |||
53 | /** |
||
54 | * @since 1.3 |
||
55 | * |
||
56 | * @return boolean |
||
57 | */ |
||
58 | 3 | public function canAddAnnotation() { |
|
71 | |||
72 | /** |
||
73 | * @since 1.0 |
||
74 | * |
||
75 | * @param InterlanguageLink $interlanguageLink |
||
76 | */ |
||
77 | 3 | public function addAnnotationForInterlanguageLink( InterlanguageLink $interlanguageLink ) { |
|
98 | |||
99 | /** |
||
100 | * @since 1.0 |
||
101 | * |
||
102 | * @param InterwikiLanguageLink $interwikiLanguageLink |
||
103 | */ |
||
104 | 1 | public function addAnnotationForInterwikiLanguageLink( InterwikiLanguageLink $interwikiLanguageLink ) { |
|
125 | |||
126 | } |
||
127 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.