1 | <?php |
||
14 | final class ReadController |
||
15 | { |
||
16 | /** @var CriteriaConfiguratorInterface */ |
||
17 | private $filters = []; |
||
18 | /** @var EntityRepository */ |
||
19 | private $repository; |
||
20 | /** @var EventDispatcherInterface */ |
||
21 | private $evm; |
||
22 | |||
23 | /** |
||
24 | * ReadController constructor. |
||
25 | * |
||
26 | * @param EntityRepository $repository |
||
27 | * @param CriteriaConfiguratorInterface[] $filters |
||
28 | * @param EventDispatcherInterface $evm |
||
29 | */ |
||
30 | public function __construct( |
||
39 | |||
40 | /** |
||
41 | * Performs search of entities and returns them |
||
42 | * |
||
43 | * @param array $criteria |
||
44 | * @param array $order |
||
45 | * @param int $limit |
||
46 | * @param int $offset |
||
47 | * |
||
48 | * @return object[] |
||
49 | * @throws FilterException |
||
50 | */ |
||
51 | public function findAction(array $criteria, array $order = [], $limit = 10, $offset = 0) |
||
78 | |||
79 | /** |
||
80 | * Returns the entity by given identifiers |
||
81 | * |
||
82 | * @param mixed $identifier |
||
83 | * |
||
84 | * @return null|object |
||
85 | */ |
||
86 | public function getAction($identifier) |
||
94 | } |
||
95 |
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..