1 | <?php |
||
12 | class QueryBuilder extends AbstractDataSource |
||
13 | { |
||
14 | /** |
||
15 | * @var EntityManager |
||
16 | */ |
||
17 | protected $em; |
||
18 | |||
19 | /** |
||
20 | * @var \Doctrine\ORM\QueryBuilder |
||
21 | */ |
||
22 | protected $qb; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $entityName; |
||
28 | |||
29 | /** |
||
30 | * @param EntityManager $em |
||
31 | * @param $entityName |
||
32 | */ |
||
33 | public function __construct(EntityManager $em, $entityName) |
||
42 | |||
43 | /** |
||
44 | * @return EntityManager |
||
45 | */ |
||
46 | public function getEntityManager() |
||
50 | |||
51 | /** |
||
52 | * @return \Doctrine\ORM\QueryBuilder |
||
53 | */ |
||
54 | public function getQueryBuilder() |
||
58 | |||
59 | /** |
||
60 | * @return array |
||
61 | */ |
||
62 | public function loadColumns() |
||
108 | |||
109 | /** |
||
110 | * @param $order |
||
111 | * @param array $filters |
||
112 | * @return $this|mixed |
||
113 | */ |
||
114 | public function prepare($order, $filters = []) |
||
143 | |||
144 | /** |
||
145 | * Return row by identifier (primary key) |
||
146 | * |
||
147 | * @param $key |
||
148 | * @return array|mixed |
||
149 | */ |
||
150 | public function find($key) |
||
153 | |||
154 | /** |
||
155 | * @param $data |
||
156 | * @return int|mixed |
||
157 | */ |
||
158 | public function insert($data) |
||
161 | |||
162 | /** |
||
163 | * @param $data |
||
164 | * @param $key |
||
165 | * @return int|mixed |
||
166 | */ |
||
167 | public function update($data, $key) |
||
170 | |||
171 | /** |
||
172 | * @param $key |
||
173 | * @return int|mixed |
||
174 | */ |
||
175 | public function delete($key) |
||
178 | } |
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..