1 | <?php |
||
17 | final class ComparatorFactory |
||
18 | { |
||
19 | /** @var ComparatorInterface[] */ |
||
20 | private $comparatorStringMap; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * Constructor. |
||
25 | */ |
||
26 | 2 | public function __construct() |
|
36 | |||
37 | /** |
||
38 | * Build a comparator instance from it's string representation |
||
39 | * |
||
40 | * @param string $comparatorString |
||
41 | * |
||
42 | * @return ComparatorInterface |
||
43 | */ |
||
44 | 2 | public function get($comparatorString) |
|
52 | |||
53 | /** |
||
54 | * Returns true if the provided string is a valid comparator. |
||
55 | * |
||
56 | * @param string $comparatorString |
||
57 | * |
||
58 | * @return bool |
||
59 | */ |
||
60 | 2 | public function isComparator($comparatorString) |
|
64 | } |
||
65 |
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..