@@ -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 |
@@ -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 |
@@ -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,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 | |
@@ -236,7 +244,7 @@ discard block |
||
236 | 244 | * @param int|null $firstResult |
237 | 245 | * @param int|null $maxResult |
238 | 246 | * |
239 | - * @return SourceIteratorInterface |
|
247 | + * @return SourceIteratorInterface|null |
|
240 | 248 | */ |
241 | 249 | public function getDataSourceIterator( |
242 | 250 | DatagridInterface $datagrid, |
@@ -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 | } |
@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | */ |
36 | 36 | interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface |
37 | 37 | { |
38 | + /** |
|
39 | + * @return void |
|
40 | + */ |
|
38 | 41 | public function setMenuFactory(MenuFactoryInterface $menuFactory); |
39 | 42 | |
40 | 43 | /** |
@@ -42,8 +45,14 @@ discard block |
||
42 | 45 | */ |
43 | 46 | public function getMenuFactory(); |
44 | 47 | |
48 | + /** |
|
49 | + * @return void |
|
50 | + */ |
|
45 | 51 | public function setFormContractor(FormContractorInterface $formContractor); |
46 | 52 | |
53 | + /** |
|
54 | + * @return void |
|
55 | + */ |
|
47 | 56 | public function setListBuilder(ListBuilderInterface $listBuilder); |
48 | 57 | |
49 | 58 | /** |
@@ -51,6 +60,9 @@ discard block |
||
51 | 60 | */ |
52 | 61 | public function getListBuilder(); |
53 | 62 | |
63 | + /** |
|
64 | + * @return void |
|
65 | + */ |
|
54 | 66 | public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder); |
55 | 67 | |
56 | 68 | /** |
@@ -58,6 +70,9 @@ discard block |
||
58 | 70 | */ |
59 | 71 | public function getDatagridBuilder(); |
60 | 72 | |
73 | + /** |
|
74 | + * @return void |
|
75 | + */ |
|
61 | 76 | public function setTranslator(TranslatorInterface $translator); |
62 | 77 | |
63 | 78 | /** |
@@ -65,8 +80,14 @@ discard block |
||
65 | 80 | */ |
66 | 81 | public function getTranslator(); |
67 | 82 | |
83 | + /** |
|
84 | + * @return void |
|
85 | + */ |
|
68 | 86 | public function setRequest(Request $request); |
69 | 87 | |
88 | + /** |
|
89 | + * @return void |
|
90 | + */ |
|
70 | 91 | public function setConfigurationPool(Pool $pool); |
71 | 92 | |
72 | 93 | /** |
@@ -79,6 +100,9 @@ discard block |
||
79 | 100 | */ |
80 | 101 | public function getClass(); |
81 | 102 | |
103 | + /** |
|
104 | + * @return void |
|
105 | + */ |
|
82 | 106 | public function attachAdminClass(FieldDescriptionInterface $fieldDescription); |
83 | 107 | |
84 | 108 | /** |
@@ -90,6 +114,7 @@ discard block |
||
90 | 114 | * Set base controller name. |
91 | 115 | * |
92 | 116 | * @param string $baseControllerName |
117 | + * @return void |
|
93 | 118 | */ |
94 | 119 | public function setBaseControllerName($baseControllerName); |
95 | 120 | |
@@ -102,6 +127,7 @@ discard block |
||
102 | 127 | |
103 | 128 | /** |
104 | 129 | * Sets a list of templates. |
130 | + * @return void |
|
105 | 131 | */ |
106 | 132 | public function setTemplates(array $templates); |
107 | 133 | |
@@ -110,6 +136,7 @@ discard block |
||
110 | 136 | * |
111 | 137 | * @param string $name |
112 | 138 | * @param string $template |
139 | + * @return void |
|
113 | 140 | */ |
114 | 141 | public function setTemplate($name, $template); |
115 | 142 | |
@@ -138,7 +165,7 @@ discard block |
||
138 | 165 | /** |
139 | 166 | * Returns a form depend on the given $object. |
140 | 167 | * |
141 | - * @return FormInterface |
|
168 | + * @return \Symfony\Component\Form\Form|null |
|
142 | 169 | */ |
143 | 170 | public function getForm(); |
144 | 171 | |
@@ -175,6 +202,9 @@ discard block |
||
175 | 202 | */ |
176 | 203 | public function getSecurityInformation(); |
177 | 204 | |
205 | + /** |
|
206 | + * @return void |
|
207 | + */ |
|
178 | 208 | public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription); |
179 | 209 | |
180 | 210 | /** |
@@ -222,6 +252,9 @@ discard block |
||
222 | 252 | */ |
223 | 253 | public function hasRoute($name); |
224 | 254 | |
255 | + /** |
|
256 | + * @return void |
|
257 | + */ |
|
225 | 258 | public function setSecurityHandler(SecurityHandlerInterface $securityHandler); |
226 | 259 | |
227 | 260 | /** |
@@ -249,10 +282,13 @@ discard block |
||
249 | 282 | * |
250 | 283 | * @param object $entity |
251 | 284 | * |
252 | - * @return mixed |
|
285 | + * @return string |
|
253 | 286 | */ |
254 | 287 | public function id($entity); |
255 | 288 | |
289 | + /** |
|
290 | + * @return void |
|
291 | + */ |
|
256 | 292 | public function setValidator(ValidatorInterface $validator); |
257 | 293 | |
258 | 294 | /** |
@@ -265,6 +301,9 @@ discard block |
||
265 | 301 | */ |
266 | 302 | public function getShow(); |
267 | 303 | |
304 | + /** |
|
305 | + * @return void |
|
306 | + */ |
|
268 | 307 | public function setFormTheme(array $formTheme); |
269 | 308 | |
270 | 309 | /** |
@@ -272,6 +311,9 @@ discard block |
||
272 | 311 | */ |
273 | 312 | public function getFormTheme(); |
274 | 313 | |
314 | + /** |
|
315 | + * @return void |
|
316 | + */ |
|
275 | 317 | public function setFilterTheme(array $filterTheme); |
276 | 318 | |
277 | 319 | /** |
@@ -279,6 +321,9 @@ discard block |
||
279 | 321 | */ |
280 | 322 | public function getFilterTheme(); |
281 | 323 | |
324 | + /** |
|
325 | + * @return void |
|
326 | + */ |
|
282 | 327 | public function addExtension(AdminExtensionInterface $extension); |
283 | 328 | |
284 | 329 | /** |
@@ -288,6 +333,9 @@ discard block |
||
288 | 333 | */ |
289 | 334 | public function getExtensions(); |
290 | 335 | |
336 | + /** |
|
337 | + * @return void |
|
338 | + */ |
|
291 | 339 | public function setRouteBuilder(RouteBuilderInterface $routeBuilder); |
292 | 340 | |
293 | 341 | /** |
@@ -302,6 +350,9 @@ discard block |
||
302 | 350 | */ |
303 | 351 | public function toString($object); |
304 | 352 | |
353 | + /** |
|
354 | + * @return void |
|
355 | + */ |
|
305 | 356 | public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy); |
306 | 357 | |
307 | 358 | /** |
@@ -325,6 +376,7 @@ discard block |
||
325 | 376 | |
326 | 377 | /** |
327 | 378 | * @param string $uniqId |
379 | + * @return void |
|
328 | 380 | */ |
329 | 381 | public function setUniqid($uniqId); |
330 | 382 | |
@@ -351,6 +403,7 @@ discard block |
||
351 | 403 | |
352 | 404 | /** |
353 | 405 | * @param object|null $subject |
406 | + * @return void |
|
354 | 407 | */ |
355 | 408 | public function setSubject($subject); |
356 | 409 | |
@@ -408,6 +461,7 @@ discard block |
||
408 | 461 | * |
409 | 462 | * @param string $actionName |
410 | 463 | * @param bool $allElements |
464 | + * @return void |
|
411 | 465 | */ |
412 | 466 | public function preBatchAction($actionName, ProxyQueryInterface $query, array &$idx, $allElements); |
413 | 467 | |
@@ -432,6 +486,7 @@ discard block |
||
432 | 486 | * |
433 | 487 | * @deprecated this feature cannot be stable, use a custom validator, |
434 | 488 | * the feature will be removed with Symfony 2.2 |
489 | + * @return void |
|
435 | 490 | */ |
436 | 491 | public function validate(ErrorElement $errorElement, $object); |
437 | 492 | |
@@ -446,6 +501,7 @@ discard block |
||
446 | 501 | * Add object security, fe. make the current user owner of the object. |
447 | 502 | * |
448 | 503 | * @param object $object |
504 | + * @return void |
|
449 | 505 | */ |
450 | 506 | public function createObjectSecurity($object); |
451 | 507 | |
@@ -454,6 +510,9 @@ discard block |
||
454 | 510 | */ |
455 | 511 | public function getParent(); |
456 | 512 | |
513 | + /** |
|
514 | + * @return void |
|
515 | + */ |
|
457 | 516 | public function setParent(self $admin); |
458 | 517 | |
459 | 518 | /** |
@@ -467,6 +526,7 @@ discard block |
||
467 | 526 | * Set the translation domain. |
468 | 527 | * |
469 | 528 | * @param string $translationDomain the translation domain |
529 | + * @return void |
|
470 | 530 | */ |
471 | 531 | public function setTranslationDomain($translationDomain); |
472 | 532 | |
@@ -486,21 +546,29 @@ discard block |
||
486 | 546 | |
487 | 547 | /** |
488 | 548 | * Set the form groups. |
549 | + * @return void |
|
489 | 550 | */ |
490 | 551 | public function setFormGroups(array $formGroups); |
491 | 552 | |
492 | 553 | public function getFormTabs(); |
493 | 554 | |
555 | + /** |
|
556 | + * @return void |
|
557 | + */ |
|
494 | 558 | public function setFormTabs(array $formTabs); |
495 | 559 | |
496 | 560 | public function getShowTabs(); |
497 | 561 | |
562 | + /** |
|
563 | + * @return void |
|
564 | + */ |
|
498 | 565 | public function setShowTabs(array $showTabs); |
499 | 566 | |
500 | 567 | /** |
501 | 568 | * Remove a form group field. |
502 | 569 | * |
503 | 570 | * @param string $key |
571 | + * @return void |
|
504 | 572 | */ |
505 | 573 | public function removeFieldFromFormGroup($key); |
506 | 574 | |
@@ -513,6 +581,7 @@ discard block |
||
513 | 581 | |
514 | 582 | /** |
515 | 583 | * Set the show groups. |
584 | + * @return void |
|
516 | 585 | */ |
517 | 586 | public function setShowGroups(array $showGroups); |
518 | 587 | |
@@ -520,6 +589,7 @@ discard block |
||
520 | 589 | * Reorder items in showGroup. |
521 | 590 | * |
522 | 591 | * @param string $group |
592 | + * @return void |
|
523 | 593 | */ |
524 | 594 | public function reorderShowGroup($group, array $keys); |
525 | 595 | |
@@ -527,6 +597,7 @@ discard block |
||
527 | 597 | * add a FieldDescription. |
528 | 598 | * |
529 | 599 | * @param string $name |
600 | + * @return void |
|
530 | 601 | */ |
531 | 602 | public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription); |
532 | 603 | |
@@ -534,6 +605,7 @@ discard block |
||
534 | 605 | * Remove a FieldDescription. |
535 | 606 | * |
536 | 607 | * @param string $name |
608 | + * @return void |
|
537 | 609 | */ |
538 | 610 | public function removeFormFieldDescription($name); |
539 | 611 | |
@@ -553,11 +625,13 @@ discard block |
||
553 | 625 | * Adds a new class to a list of supported sub classes. |
554 | 626 | * |
555 | 627 | * @param $subClass |
628 | + * @return void |
|
556 | 629 | */ |
557 | 630 | public function addSubClass($subClass); |
558 | 631 | |
559 | 632 | /** |
560 | 633 | * Sets the list of supported sub classes. |
634 | + * @return void |
|
561 | 635 | */ |
562 | 636 | public function setSubClasses(array $subClasses); |
563 | 637 | |
@@ -616,6 +690,7 @@ discard block |
||
616 | 690 | |
617 | 691 | /** |
618 | 692 | * Set the current child status. |
693 | + * @return void |
|
619 | 694 | */ |
620 | 695 | public function setCurrentChild(bool $currentChild); |
621 | 696 | |
@@ -649,6 +724,7 @@ discard block |
||
649 | 724 | |
650 | 725 | /** |
651 | 726 | * @param string $mode |
727 | + * @return void |
|
652 | 728 | */ |
653 | 729 | public function setListMode($mode); |
654 | 730 | |
@@ -682,12 +758,14 @@ discard block |
||
682 | 758 | * Returns the result link for an object. |
683 | 759 | * |
684 | 760 | * @param object $object |
761 | + * @return string|null |
|
685 | 762 | */ |
686 | 763 | public function getSearchResultLink($object): ?string; |
687 | 764 | |
688 | 765 | /** |
689 | 766 | * Setting to true will enable mosaic button for the admin screen. |
690 | 767 | * Setting to false will hide mosaic button for the admin screen. |
768 | + * @return void |
|
691 | 769 | */ |
692 | 770 | public function showMosaicButton(bool $isShown): void; |
693 | 771 |