1 | <?php |
||
12 | class AdminList |
||
13 | { |
||
14 | /** |
||
15 | * @var Request |
||
16 | */ |
||
17 | protected $request; |
||
18 | |||
19 | /** |
||
20 | * @var AdminListConfiguratorInterface |
||
21 | */ |
||
22 | protected $configurator; |
||
23 | |||
24 | /** |
||
25 | * @param AdminListConfiguratorInterface $configurator The configurator |
||
26 | */ |
||
27 | 30 | public function __construct(AdminListConfiguratorInterface $configurator) |
|
35 | |||
36 | /** |
||
37 | * @return AdminListConfiguratorInterface|null |
||
38 | */ |
||
39 | 1 | public function getConfigurator() |
|
43 | |||
44 | /** |
||
45 | * @return FilterBuilder |
||
46 | */ |
||
47 | 1 | public function getFilterBuilder() |
|
51 | |||
52 | /** |
||
53 | * @param Request $request |
||
54 | */ |
||
55 | public function bindRequest(Request $request) |
||
59 | |||
60 | /** |
||
61 | * @return Field[] |
||
62 | */ |
||
63 | 1 | public function getColumns() |
|
67 | |||
68 | /** |
||
69 | * @return Field[] |
||
70 | */ |
||
71 | 1 | public function getExportColumns() |
|
75 | |||
76 | /** |
||
77 | * @return int |
||
78 | */ |
||
79 | 1 | public function getCount() |
|
83 | |||
84 | /** |
||
85 | * @return array|null |
||
86 | */ |
||
87 | 1 | public function getItems() |
|
91 | |||
92 | /** |
||
93 | * Return an iterator for all items that matches the current filtering |
||
94 | * |
||
95 | * @return \Iterator |
||
96 | */ |
||
97 | public function getIterator() |
||
101 | |||
102 | /** |
||
103 | * @param string $columnName |
||
|
|||
104 | * |
||
105 | * @return bool |
||
106 | */ |
||
107 | 1 | public function hasSort($columnName = null) |
|
115 | |||
116 | /** |
||
117 | * @param mixed $item |
||
118 | * |
||
119 | * @return bool |
||
120 | */ |
||
121 | 1 | public function canEdit($item) |
|
125 | |||
126 | /** |
||
127 | * @return bool |
||
128 | */ |
||
129 | 1 | public function canAdd() |
|
133 | |||
134 | 1 | public function canView($item) |
|
138 | |||
139 | /** |
||
140 | * @return array |
||
141 | */ |
||
142 | 1 | public function getIndexUrl() |
|
146 | |||
147 | /** |
||
148 | * @param mixed $item |
||
149 | * |
||
150 | * @return array |
||
151 | */ |
||
152 | 1 | public function getEditUrlFor($item) |
|
156 | |||
157 | 1 | public function getViewUrlFor($item) |
|
161 | |||
162 | /** |
||
163 | * @param mixed $item |
||
164 | * |
||
165 | * @return array |
||
166 | */ |
||
167 | 1 | public function getDeleteUrlFor($item) |
|
171 | |||
172 | /** |
||
173 | * @param array $params |
||
174 | * |
||
175 | * @return array |
||
176 | */ |
||
177 | 1 | public function getAddUrlFor(array $params) |
|
181 | |||
182 | /** |
||
183 | * @param mixed $item |
||
184 | * |
||
185 | * @return bool |
||
186 | */ |
||
187 | 1 | public function canDelete($item) |
|
191 | |||
192 | /** |
||
193 | * @return bool |
||
194 | */ |
||
195 | 1 | public function canExport() |
|
199 | |||
200 | /** |
||
201 | * @return array |
||
202 | */ |
||
203 | 1 | public function getExportUrl() |
|
207 | |||
208 | /** |
||
209 | * @param object|array $object The object |
||
210 | * @param string $attribute The attribute |
||
211 | * |
||
212 | * @return mixed |
||
213 | */ |
||
214 | 1 | public function getValue($object, $attribute) |
|
218 | |||
219 | /** |
||
220 | * @param object|array $object The object |
||
221 | * @param string $attribute The attribute |
||
222 | * |
||
223 | * @return string |
||
224 | */ |
||
225 | 1 | public function getStringValue($object, $attribute) |
|
229 | |||
230 | /** |
||
231 | * @return string |
||
232 | */ |
||
233 | 1 | public function getOrderBy() |
|
237 | |||
238 | /** |
||
239 | * @return string |
||
240 | */ |
||
241 | 1 | public function getOrderDirection() |
|
245 | |||
246 | /** |
||
247 | * @return array |
||
248 | */ |
||
249 | 1 | public function getItemActions() |
|
253 | |||
254 | /** |
||
255 | * @return bool |
||
256 | */ |
||
257 | 1 | public function hasItemActions() |
|
261 | |||
262 | /** |
||
263 | * @return bool |
||
264 | */ |
||
265 | 1 | public function hasListActions() |
|
269 | |||
270 | /** |
||
271 | * @return array |
||
272 | */ |
||
273 | 1 | public function getListActions() |
|
277 | |||
278 | /** |
||
279 | * @return array |
||
280 | */ |
||
281 | 1 | public function getBulkActions() |
|
285 | |||
286 | /** |
||
287 | * @return bool |
||
288 | */ |
||
289 | 1 | public function hasBulkActions() |
|
293 | |||
294 | /** |
||
295 | * @return Pagerfanta |
||
296 | */ |
||
297 | 1 | public function getPagerfanta() |
|
301 | } |
||
302 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.