| 1 | <?php |
||
| 11 | class ArrayStopwordAnalyzer implements StopwordAnalyzer { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Any change to the content of its data files should be reflected in a |
||
| 15 | * version change (the version number does not necessarily correlate with |
||
| 16 | * the library version) |
||
| 17 | */ |
||
| 18 | const VERSION = '0.1'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Cdb |
||
| 22 | */ |
||
| 23 | private $stopwords; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @since 0.1 |
||
| 27 | * |
||
| 28 | * @param array $stopwords |
||
| 29 | */ |
||
| 30 | public function __construct( array $stopwords = array() ) { |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @since 0.1 |
||
| 36 | * |
||
| 37 | * @param string $word |
||
| 38 | * |
||
| 39 | * @return boolean |
||
| 40 | */ |
||
| 41 | public function isStopWord( $word ) { |
||
| 44 | |||
| 45 | } |
||
| 46 |
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..