1 | <?php |
||
16 | class CdbStopwordAnalyzer implements StopwordAnalyzer { |
||
17 | |||
18 | /** |
||
19 | * Any change to the content of its data files should be reflected in a |
||
20 | * version change (the version number does not necessarily correlate with |
||
21 | * the library version) |
||
22 | */ |
||
23 | const VERSION = '0.1.cdb'; |
||
24 | |||
25 | /** |
||
26 | * @var Cdb |
||
27 | */ |
||
28 | private $cdb; |
||
29 | |||
30 | /** |
||
31 | * @since 0.1 |
||
32 | * |
||
33 | * @param string $target |
||
34 | */ |
||
35 | 12 | public function __construct( $target ) { |
|
42 | |||
43 | /** |
||
44 | * @since 0.1 |
||
45 | * |
||
46 | * @return boolean |
||
47 | */ |
||
48 | public function isAvailable() { |
||
51 | |||
52 | /** |
||
53 | * @since 0.1 |
||
54 | * |
||
55 | * @param string $language |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | 21 | public static function getLocation() { |
|
62 | |||
63 | /** |
||
64 | * @since 0.1 |
||
65 | * |
||
66 | * @param string $language |
||
67 | * |
||
68 | * @return string |
||
69 | */ |
||
70 | 20 | public static function getTargetByLanguage( $language ) { |
|
73 | |||
74 | /** |
||
75 | * @since 0.1 |
||
76 | * |
||
77 | * @param string $word |
||
78 | * |
||
79 | * @return boolean |
||
80 | */ |
||
81 | 12 | public function isStopWord( $word ) { |
|
89 | |||
90 | /** |
||
91 | * @since 0.1 |
||
92 | * |
||
93 | * @param string $location |
||
94 | * @param string $language |
||
95 | * |
||
96 | * @return boolean |
||
97 | */ |
||
98 | 11 | public static function createCdbByLanguage( $location, $language ) { |
|
125 | |||
126 | } |
||
127 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..