@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | interface SecurityHandlerInterface |
22 | 22 | { |
23 | 23 | /** |
24 | - * @param string|array $attributes |
|
24 | + * @param string $attributes |
|
25 | 25 | * @param mixed|null $object |
26 | 26 | * |
27 | 27 | * @return bool |
@@ -44,6 +44,7 @@ discard block |
||
44 | 44 | * Create object security, fe. make the current user owner of the object. |
45 | 45 | * |
46 | 46 | * @param object $object |
47 | + * @return void |
|
47 | 48 | */ |
48 | 49 | public function createObjectSecurity(AdminInterface $admin, $object); |
49 | 50 | |
@@ -51,6 +52,7 @@ discard block |
||
51 | 52 | * Remove object security. |
52 | 53 | * |
53 | 54 | * @param object $object |
55 | + * @return void |
|
54 | 56 | */ |
55 | 57 | public function deleteObjectSecurity(AdminInterface $admin, $object); |
56 | 58 | } |
@@ -647,6 +647,9 @@ |
||
647 | 647 | $this->assertNull($this->pager->getQuery()); |
648 | 648 | } |
649 | 649 | |
650 | + /** |
|
651 | + * @param Pager $obj |
|
652 | + */ |
|
650 | 653 | protected function callMethod($obj, string $name, array $args = []) |
651 | 654 | { |
652 | 655 | $class = new \ReflectionClass($obj); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | /** |
26 | 26 | * @param string $questionText |
27 | - * @param mixed $default |
|
27 | + * @param string $default |
|
28 | 28 | * @param callable $validator |
29 | 29 | * |
30 | 30 | * @return mixed |
@@ -56,6 +56,9 @@ |
||
56 | 56 | ); |
57 | 57 | } |
58 | 58 | |
59 | + /** |
|
60 | + * @return string |
|
61 | + */ |
|
59 | 62 | protected function getChoiceClass() |
60 | 63 | { |
61 | 64 | return ChoiceType::class; |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | /** |
183 | 183 | * render a view element. |
184 | 184 | * |
185 | - * @param object $object |
|
185 | + * @param \stdClass $object |
|
186 | 186 | * |
187 | 187 | * @return string |
188 | 188 | */ |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | /** |
320 | 320 | * Get the identifiers as a string that is safe to use in a url. |
321 | 321 | * |
322 | - * @param object $model |
|
322 | + * @param \stdClass $model |
|
323 | 323 | * |
324 | 324 | * @return string string representation of the id that is safe to use in a url |
325 | 325 | */ |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | } |
342 | 342 | |
343 | 343 | /** |
344 | - * @return string|bool |
|
344 | + * @return string|false |
|
345 | 345 | */ |
346 | 346 | public function getXEditableType($type) |
347 | 347 | { |
@@ -743,8 +743,8 @@ |
||
743 | 743 | /** |
744 | 744 | * Compare history revisions of object. |
745 | 745 | * |
746 | - * @param int|string|null $baseRevision |
|
747 | - * @param int|string|null $compareRevision |
|
746 | + * @param null|integer $baseRevision |
|
747 | + * @param null|integer $compareRevision |
|
748 | 748 | * |
749 | 749 | * @throws AccessDeniedException If access is not granted |
750 | 750 | * @throws NotFoundHttpException If the object or revision does not exist or the audit reader is not available |
@@ -37,6 +37,7 @@ discard block |
||
37 | 37 | * @param object $object |
38 | 38 | * |
39 | 39 | * @throws ModelManagerException |
40 | + * @return void |
|
40 | 41 | */ |
41 | 42 | public function create($object); |
42 | 43 | |
@@ -44,6 +45,7 @@ discard block |
||
44 | 45 | * @param object $object |
45 | 46 | * |
46 | 47 | * @throws ModelManagerException |
48 | + * @return void |
|
47 | 49 | */ |
48 | 50 | public function update($object); |
49 | 51 | |
@@ -51,6 +53,7 @@ discard block |
||
51 | 53 | * @param object $object |
52 | 54 | * |
53 | 55 | * @throws ModelManagerException |
56 | + * @return void |
|
54 | 57 | */ |
55 | 58 | public function delete($object); |
56 | 59 | |
@@ -72,7 +75,7 @@ discard block |
||
72 | 75 | * @param string $class |
73 | 76 | * @param mixed $id |
74 | 77 | * |
75 | - * @return object|null the object with id or null if not found |
|
78 | + * @return \Sonata\AdminBundle\Tests\App\Model\Foo|null the object with id or null if not found |
|
76 | 79 | */ |
77 | 80 | public function find($class, $id); |
78 | 81 | |
@@ -80,6 +83,7 @@ discard block |
||
80 | 83 | * @param string $class |
81 | 84 | * |
82 | 85 | * @throws ModelManagerException |
86 | + * @return void |
|
83 | 87 | */ |
84 | 88 | public function batchDelete($class, ProxyQueryInterface $queryProxy); |
85 | 89 | |
@@ -156,7 +160,7 @@ discard block |
||
156 | 160 | * |
157 | 161 | * @param string $class |
158 | 162 | * |
159 | - * @return object |
|
163 | + * @return \Sonata\AdminBundle\Tests\App\Model\Foo |
|
160 | 164 | */ |
161 | 165 | public function getModelInstance($class); |
162 | 166 | |
@@ -172,6 +176,7 @@ discard block |
||
172 | 176 | * |
173 | 177 | * @param array $collection |
174 | 178 | * @param object $element |
179 | + * @return void |
|
175 | 180 | */ |
176 | 181 | public function collectionRemoveElement(&$collection, &$element); |
177 | 182 | |
@@ -180,6 +185,7 @@ discard block |
||
180 | 185 | * |
181 | 186 | * @param array $collection |
182 | 187 | * @param object $element |
188 | + * @return void |
|
183 | 189 | */ |
184 | 190 | public function collectionAddElement(&$collection, &$element); |
185 | 191 | |
@@ -197,6 +203,7 @@ discard block |
||
197 | 203 | * Clear the collection. |
198 | 204 | * |
199 | 205 | * @param array $collection |
206 | + * @return void |
|
200 | 207 | */ |
201 | 208 | public function collectionClear(&$collection); |
202 | 209 | |
@@ -229,6 +236,7 @@ discard block |
||
229 | 236 | |
230 | 237 | /** |
231 | 238 | * @param mixed $query |
239 | + * @return void |
|
232 | 240 | */ |
233 | 241 | public function executeQuery($query); |
234 | 242 | |
@@ -261,6 +269,7 @@ discard block |
||
261 | 269 | |
262 | 270 | /** |
263 | 271 | * @param string $class |
272 | + * @return void |
|
264 | 273 | */ |
265 | 274 | public function addIdentifiersToQuery($class, ProxyQueryInterface $query, array $idx); |
266 | 275 | } |
@@ -62,6 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | /** |
64 | 64 | * @param string $label |
65 | + * @return void |
|
65 | 66 | */ |
66 | 67 | public function setLabel($label); |
67 | 68 | |
@@ -72,7 +73,7 @@ discard block |
||
72 | 73 | |
73 | 74 | /** |
74 | 75 | * @param string $name |
75 | - * @param mixed|null $default |
|
76 | + * @param boolean $default |
|
76 | 77 | * |
77 | 78 | * @return mixed |
78 | 79 | */ |
@@ -80,12 +81,14 @@ discard block |
||
80 | 81 | |
81 | 82 | /** |
82 | 83 | * @param string $name |
83 | - * @param mixed $value |
|
84 | + * @param boolean $value |
|
85 | + * @return void |
|
84 | 86 | */ |
85 | 87 | public function setOption($name, $value); |
86 | 88 | |
87 | 89 | /** |
88 | 90 | * @param string $name |
91 | + * @return void |
|
89 | 92 | */ |
90 | 93 | public function initialize($name, array $options = []); |
91 | 94 | |
@@ -129,6 +132,7 @@ discard block |
||
129 | 132 | * |
130 | 133 | * @param string $name |
131 | 134 | * @param mixed $value |
135 | + * @return void |
|
132 | 136 | */ |
133 | 137 | public function setFieldOption($name, $value); |
134 | 138 | |
@@ -155,6 +159,7 @@ discard block |
||
155 | 159 | * Set the condition to use with the left side of the query : OR or AND. |
156 | 160 | * |
157 | 161 | * @param string $condition |
162 | + * @return void |
|
158 | 163 | */ |
159 | 164 | public function setCondition($condition); |
160 | 165 |
@@ -37,26 +37,59 @@ discard block |
||
37 | 37 | */ |
38 | 38 | interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface |
39 | 39 | { |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
40 | 43 | public function setMenuFactory(MenuFactoryInterface $menuFactory): void; |
41 | 44 | |
45 | + /** |
|
46 | + * @return MenuFactoryInterface |
|
47 | + */ |
|
42 | 48 | public function getMenuFactory(): ?MenuFactoryInterface; |
43 | 49 | |
50 | + /** |
|
51 | + * @return void |
|
52 | + */ |
|
44 | 53 | public function setFormContractor(FormContractorInterface $formContractor): void; |
45 | 54 | |
55 | + /** |
|
56 | + * @return void |
|
57 | + */ |
|
46 | 58 | public function setListBuilder(ListBuilderInterface $listBuilder): void; |
47 | 59 | |
60 | + /** |
|
61 | + * @return ListBuilderInterface |
|
62 | + */ |
|
48 | 63 | public function getListBuilder(): ?ListBuilderInterface; |
49 | 64 | |
65 | + /** |
|
66 | + * @return void |
|
67 | + */ |
|
50 | 68 | public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder): void; |
51 | 69 | |
70 | + /** |
|
71 | + * @return DatagridBuilderInterface |
|
72 | + */ |
|
52 | 73 | public function getDatagridBuilder(): ?DatagridBuilderInterface; |
53 | 74 | |
75 | + /** |
|
76 | + * @return void |
|
77 | + */ |
|
54 | 78 | public function setTranslator(TranslatorInterface $translator): void; |
55 | 79 | |
80 | + /** |
|
81 | + * @return TranslatorInterface |
|
82 | + */ |
|
56 | 83 | public function getTranslator(): ?TranslatorInterface; |
57 | 84 | |
85 | + /** |
|
86 | + * @return void |
|
87 | + */ |
|
58 | 88 | public function setRequest(Request $request): void; |
59 | 89 | |
90 | + /** |
|
91 | + * @return void |
|
92 | + */ |
|
60 | 93 | public function setConfigurationPool(Pool $pool): void; |
61 | 94 | |
62 | 95 | /** |
@@ -67,12 +100,19 @@ discard block |
||
67 | 100 | */ |
68 | 101 | public function getClass(): string; |
69 | 102 | |
103 | + /** |
|
104 | + * @return void |
|
105 | + */ |
|
70 | 106 | public function attachAdminClass(FieldDescriptionInterface $fieldDescription): void; |
71 | 107 | |
108 | + /** |
|
109 | + * @return DatagridInterface|null |
|
110 | + */ |
|
72 | 111 | public function getDatagrid(): ?DatagridInterface; |
73 | 112 | |
74 | 113 | /** |
75 | 114 | * Set base controller name. |
115 | + * @return void |
|
76 | 116 | */ |
77 | 117 | public function setBaseControllerName(string $baseControllerName): void; |
78 | 118 | |
@@ -83,6 +123,7 @@ discard block |
||
83 | 123 | |
84 | 124 | /** |
85 | 125 | * Sets a list of templates. |
126 | + * @return void |
|
86 | 127 | */ |
87 | 128 | public function setTemplates(array $templates): void; |
88 | 129 | |
@@ -91,9 +132,13 @@ discard block |
||
91 | 132 | * |
92 | 133 | * @param string $name |
93 | 134 | * @param string $template |
135 | + * @return void |
|
94 | 136 | */ |
95 | 137 | public function setTemplate($name, $template): void; |
96 | 138 | |
139 | + /** |
|
140 | + * @return ModelManagerInterface |
|
141 | + */ |
|
97 | 142 | public function getModelManager(): ?ModelManagerInterface; |
98 | 143 | |
99 | 144 | /** |
@@ -113,6 +158,7 @@ discard block |
||
113 | 158 | |
114 | 159 | /** |
115 | 160 | * Returns a form depend on the given $object. |
161 | + * @return \Symfony\Component\Form\Form|null |
|
116 | 162 | */ |
117 | 163 | public function getForm(): ?FormInterface; |
118 | 164 | |
@@ -143,6 +189,9 @@ discard block |
||
143 | 189 | */ |
144 | 190 | public function getSecurityInformation(): array; |
145 | 191 | |
192 | + /** |
|
193 | + * @return void |
|
194 | + */ |
|
146 | 195 | public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription): void; |
147 | 196 | |
148 | 197 | /** |
@@ -184,8 +233,14 @@ discard block |
||
184 | 233 | */ |
185 | 234 | public function hasRoute(string $name): bool; |
186 | 235 | |
236 | + /** |
|
237 | + * @return void |
|
238 | + */ |
|
187 | 239 | public function setSecurityHandler(SecurityHandlerInterface $securityHandler): void; |
188 | 240 | |
241 | + /** |
|
242 | + * @return SecurityHandlerInterface |
|
243 | + */ |
|
189 | 244 | public function getSecurityHandler(): ?SecurityHandlerInterface; |
190 | 245 | |
191 | 246 | /** |
@@ -204,15 +259,28 @@ discard block |
||
204 | 259 | * Shorthand method for templating. |
205 | 260 | * |
206 | 261 | * @param object $entity |
262 | + * @return string |
|
207 | 263 | */ |
208 | 264 | public function id($entity): ?string; |
209 | 265 | |
266 | + /** |
|
267 | + * @return void |
|
268 | + */ |
|
210 | 269 | public function setValidator(ValidatorInterface $validator): void; |
211 | 270 | |
271 | + /** |
|
272 | + * @return ValidatorInterface |
|
273 | + */ |
|
212 | 274 | public function getValidator(): ?ValidatorInterface; |
213 | 275 | |
276 | + /** |
|
277 | + * @return FieldDescriptionCollection|null |
|
278 | + */ |
|
214 | 279 | public function getShow(): ?FieldDescriptionCollection; |
215 | 280 | |
281 | + /** |
|
282 | + * @return void |
|
283 | + */ |
|
216 | 284 | public function setFormTheme(array $formTheme): void; |
217 | 285 | |
218 | 286 | /** |
@@ -220,6 +288,9 @@ discard block |
||
220 | 288 | */ |
221 | 289 | public function getFormTheme(): array; |
222 | 290 | |
291 | + /** |
|
292 | + * @return void |
|
293 | + */ |
|
223 | 294 | public function setFilterTheme(array $filterTheme): void; |
224 | 295 | |
225 | 296 | /** |
@@ -227,6 +298,9 @@ discard block |
||
227 | 298 | */ |
228 | 299 | public function getFilterTheme(): array; |
229 | 300 | |
301 | + /** |
|
302 | + * @return void |
|
303 | + */ |
|
230 | 304 | public function addExtension(AdminExtensionInterface $extension): void; |
231 | 305 | |
232 | 306 | /** |
@@ -236,8 +310,14 @@ discard block |
||
236 | 310 | */ |
237 | 311 | public function getExtensions(): array; |
238 | 312 | |
313 | + /** |
|
314 | + * @return void |
|
315 | + */ |
|
239 | 316 | public function setRouteBuilder(RouteBuilderInterface $routeBuilder): void; |
240 | 317 | |
318 | + /** |
|
319 | + * @return RouteBuilderInterface |
|
320 | + */ |
|
241 | 321 | public function getRouteBuilder(): ?RouteBuilderInterface; |
242 | 322 | |
243 | 323 | /** |
@@ -245,8 +325,14 @@ discard block |
||
245 | 325 | */ |
246 | 326 | public function toString($object): string; |
247 | 327 | |
328 | + /** |
|
329 | + * @return void |
|
330 | + */ |
|
248 | 331 | public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy): void; |
249 | 332 | |
333 | + /** |
|
334 | + * @return LabelTranslatorStrategyInterface |
|
335 | + */ |
|
250 | 336 | public function getLabelTranslatorStrategy(): ?LabelTranslatorStrategyInterface; |
251 | 337 | |
252 | 338 | /** |
@@ -263,6 +349,7 @@ discard block |
||
263 | 349 | |
264 | 350 | /** |
265 | 351 | * @param string $uniqId |
352 | + * @return void |
|
266 | 353 | */ |
267 | 354 | public function setUniqid($uniqId): void; |
268 | 355 | |
@@ -285,6 +372,7 @@ discard block |
||
285 | 372 | |
286 | 373 | /** |
287 | 374 | * @param object|null $subject |
375 | + * @return void |
|
288 | 376 | */ |
289 | 377 | public function setSubject($subject): void; |
290 | 378 | |
@@ -324,6 +412,7 @@ discard block |
||
324 | 412 | |
325 | 413 | /** |
326 | 414 | * Call before the batch action, allow you to alter the query and the idx. |
415 | + * @return void |
|
327 | 416 | */ |
328 | 417 | public function preBatchAction(string $actionName, ProxyQueryInterface $query, array &$idx, bool $allElements = false): void; |
329 | 418 | |
@@ -346,6 +435,7 @@ discard block |
||
346 | 435 | * |
347 | 436 | * @deprecated this feature cannot be stable, use a custom validator, |
348 | 437 | * the feature will be removed with Symfony 2.2 |
438 | + * @return void |
|
349 | 439 | */ |
350 | 440 | public function validate(ErrorElement $errorElement, $object): void; |
351 | 441 | |
@@ -355,11 +445,18 @@ discard block |
||
355 | 445 | * Add object security, fe. make the current user owner of the object. |
356 | 446 | * |
357 | 447 | * @param object $object |
448 | + * @return void |
|
358 | 449 | */ |
359 | 450 | public function createObjectSecurity($object): void; |
360 | 451 | |
452 | + /** |
|
453 | + * @return AdminInterface|null |
|
454 | + */ |
|
361 | 455 | public function getParent(): ?self; |
362 | 456 | |
457 | + /** |
|
458 | + * @return void |
|
459 | + */ |
|
363 | 460 | public function setParent(self $admin): void; |
364 | 461 | |
365 | 462 | /** |
@@ -371,6 +468,7 @@ discard block |
||
371 | 468 | * Set the translation domain. |
372 | 469 | * |
373 | 470 | * @param string $translationDomain the translation domain |
471 | + * @return void |
|
374 | 472 | */ |
375 | 473 | public function setTranslationDomain(string $translationDomain): void; |
376 | 474 | |
@@ -390,21 +488,29 @@ discard block |
||
390 | 488 | |
391 | 489 | /** |
392 | 490 | * Set the form groups. |
491 | + * @return void |
|
393 | 492 | */ |
394 | 493 | public function setFormGroups(array $formGroups): void; |
395 | 494 | |
396 | 495 | public function getFormTabs(); |
397 | 496 | |
497 | + /** |
|
498 | + * @return void |
|
499 | + */ |
|
398 | 500 | public function setFormTabs(array $formTabs): void; |
399 | 501 | |
400 | 502 | public function getShowTabs(); |
401 | 503 | |
504 | + /** |
|
505 | + * @return void |
|
506 | + */ |
|
402 | 507 | public function setShowTabs(array $showTabs): void; |
403 | 508 | |
404 | 509 | /** |
405 | 510 | * Remove a form group field. |
406 | 511 | * |
407 | 512 | * @param string $key |
513 | + * @return void |
|
408 | 514 | */ |
409 | 515 | public function removeFieldFromFormGroup($key): void; |
410 | 516 | |
@@ -417,11 +523,13 @@ discard block |
||
417 | 523 | |
418 | 524 | /** |
419 | 525 | * Set the show groups. |
526 | + * @return void |
|
420 | 527 | */ |
421 | 528 | public function setShowGroups(array $showGroups): void; |
422 | 529 | |
423 | 530 | /** |
424 | 531 | * Reorder items in showGroup. |
532 | + * @return void |
|
425 | 533 | */ |
426 | 534 | public function reorderShowGroup(string $group, array $keys): void; |
427 | 535 | |
@@ -429,6 +537,7 @@ discard block |
||
429 | 537 | * add a FieldDescription. |
430 | 538 | * |
431 | 539 | * @param string $name |
540 | + * @return void |
|
432 | 541 | */ |
433 | 542 | public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription): void; |
434 | 543 | |
@@ -436,6 +545,7 @@ discard block |
||
436 | 545 | * Remove a FieldDescription. |
437 | 546 | * |
438 | 547 | * @param string $name |
548 | + * @return void |
|
439 | 549 | */ |
440 | 550 | public function removeFormFieldDescription($name): void; |
441 | 551 | |
@@ -453,11 +563,13 @@ discard block |
||
453 | 563 | * Adds a new class to a list of supported sub classes. |
454 | 564 | * |
455 | 565 | * @param $subClass |
566 | + * @return void |
|
456 | 567 | */ |
457 | 568 | public function addSubClass($subClass): void; |
458 | 569 | |
459 | 570 | /** |
460 | 571 | * Sets the list of supported sub classes. |
572 | + * @return void |
|
461 | 573 | */ |
462 | 574 | public function setSubClasses(array $subClasses): void; |
463 | 575 | |
@@ -496,6 +608,7 @@ discard block |
||
496 | 608 | |
497 | 609 | /** |
498 | 610 | * Returns Admin`s label. |
611 | + * @return string |
|
499 | 612 | */ |
500 | 613 | public function getLabel(): ?string; |
501 | 614 | |
@@ -510,6 +623,7 @@ discard block |
||
510 | 623 | |
511 | 624 | /** |
512 | 625 | * Set the current child status. |
626 | + * @return void |
|
513 | 627 | */ |
514 | 628 | public function setCurrentChild(bool $currentChild): void; |
515 | 629 | |
@@ -535,6 +649,7 @@ discard block |
||
535 | 649 | |
536 | 650 | /** |
537 | 651 | * @param string $mode |
652 | + * @return void |
|
538 | 653 | */ |
539 | 654 | public function setListMode($mode): void; |
540 | 655 | |
@@ -560,12 +675,14 @@ discard block |
||
560 | 675 | |
561 | 676 | /** |
562 | 677 | * Returns the result link for an object. |
678 | + * @return string|null |
|
563 | 679 | */ |
564 | 680 | public function getSearchResultLink(object $object): ?string; |
565 | 681 | |
566 | 682 | /** |
567 | 683 | * Setting to true will enable mosaic button for the admin screen. |
568 | 684 | * Setting to false will hide mosaic button for the admin screen. |
685 | + * @return void |
|
569 | 686 | */ |
570 | 687 | public function showMosaicButton(bool $isShown): void; |
571 | 688 |