@@ -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 | */ |
@@ -221,8 +221,8 @@ discard block |
||
| 221 | 221 | /** |
| 222 | 222 | * render a compared view element. |
| 223 | 223 | * |
| 224 | - * @param mixed $baseObject |
|
| 225 | - * @param mixed $compareObject |
|
| 224 | + * @param \stdClass $baseObject |
|
| 225 | + * @param \stdClass $compareObject |
|
| 226 | 226 | * |
| 227 | 227 | * @return string |
| 228 | 228 | */ |
@@ -343,7 +343,8 @@ discard block |
||
| 343 | 343 | /** |
| 344 | 344 | * Get the identifiers as a string that is safe to use in a url. |
| 345 | 345 | * |
| 346 | - * @param object $model |
|
| 346 | + * @param \stdClass $model |
|
| 347 | + * @param AdminInterface $admin |
|
| 347 | 348 | * |
| 348 | 349 | * @return string string representation of the id that is safe to use in a url |
| 349 | 350 | */ |
@@ -365,7 +366,7 @@ discard block |
||
| 365 | 366 | } |
| 366 | 367 | |
| 367 | 368 | /** |
| 368 | - * @return string|bool |
|
| 369 | + * @return string|false |
|
| 369 | 370 | */ |
| 370 | 371 | public function getXEditableType($type) |
| 371 | 372 | { |
@@ -414,6 +414,10 @@ |
||
| 414 | 414 | ); |
| 415 | 415 | } |
| 416 | 416 | |
| 417 | + /** |
|
| 418 | + * @param string $name |
|
| 419 | + * @param string $label |
|
| 420 | + */ |
|
| 417 | 421 | private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription |
| 418 | 422 | { |
| 419 | 423 | $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class); |
@@ -50,6 +50,9 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface |
| 52 | 52 | { |
| 53 | + /** |
|
| 54 | + * @return void |
|
| 55 | + */ |
|
| 53 | 56 | public function setMenuFactory(MenuFactoryInterface $menuFactory); |
| 54 | 57 | |
| 55 | 58 | /** |
@@ -57,8 +60,14 @@ discard block |
||
| 57 | 60 | */ |
| 58 | 61 | public function getMenuFactory(); |
| 59 | 62 | |
| 63 | + /** |
|
| 64 | + * @return void |
|
| 65 | + */ |
|
| 60 | 66 | public function setFormContractor(FormContractorInterface $formContractor); |
| 61 | 67 | |
| 68 | + /** |
|
| 69 | + * @return void |
|
| 70 | + */ |
|
| 62 | 71 | public function setListBuilder(ListBuilderInterface $listBuilder); |
| 63 | 72 | |
| 64 | 73 | /** |
@@ -66,6 +75,9 @@ discard block |
||
| 66 | 75 | */ |
| 67 | 76 | public function getListBuilder(); |
| 68 | 77 | |
| 78 | + /** |
|
| 79 | + * @return void |
|
| 80 | + */ |
|
| 69 | 81 | public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder); |
| 70 | 82 | |
| 71 | 83 | /** |
@@ -73,6 +85,9 @@ discard block |
||
| 73 | 85 | */ |
| 74 | 86 | public function getDatagridBuilder(); |
| 75 | 87 | |
| 88 | + /** |
|
| 89 | + * @return void |
|
| 90 | + */ |
|
| 76 | 91 | public function setTranslator(TranslatorInterface $translator); |
| 77 | 92 | |
| 78 | 93 | /** |
@@ -80,8 +95,14 @@ discard block |
||
| 80 | 95 | */ |
| 81 | 96 | public function getTranslator(); |
| 82 | 97 | |
| 98 | + /** |
|
| 99 | + * @return void |
|
| 100 | + */ |
|
| 83 | 101 | public function setRequest(Request $request); |
| 84 | 102 | |
| 103 | + /** |
|
| 104 | + * @return void |
|
| 105 | + */ |
|
| 85 | 106 | public function setConfigurationPool(Pool $pool); |
| 86 | 107 | |
| 87 | 108 | /** |
@@ -94,6 +115,9 @@ discard block |
||
| 94 | 115 | */ |
| 95 | 116 | public function getClass(); |
| 96 | 117 | |
| 118 | + /** |
|
| 119 | + * @return void |
|
| 120 | + */ |
|
| 97 | 121 | public function attachAdminClass(FieldDescriptionInterface $fieldDescription); |
| 98 | 122 | |
| 99 | 123 | /** |
@@ -105,6 +129,7 @@ discard block |
||
| 105 | 129 | * Set base controller name. |
| 106 | 130 | * |
| 107 | 131 | * @param string $baseControllerName |
| 132 | + * @return void |
|
| 108 | 133 | */ |
| 109 | 134 | public function setBaseControllerName($baseControllerName); |
| 110 | 135 | |
@@ -179,6 +204,9 @@ discard block |
||
| 179 | 204 | */ |
| 180 | 205 | public function getSecurityInformation(); |
| 181 | 206 | |
| 207 | + /** |
|
| 208 | + * @return void |
|
| 209 | + */ |
|
| 182 | 210 | public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription); |
| 183 | 211 | |
| 184 | 212 | /** |
@@ -260,12 +288,13 @@ discard block |
||
| 260 | 288 | * |
| 261 | 289 | * @param object $model |
| 262 | 290 | * |
| 263 | - * @return mixed |
|
| 291 | + * @return string |
|
| 264 | 292 | */ |
| 265 | 293 | public function id($model); |
| 266 | 294 | |
| 267 | 295 | /** |
| 268 | 296 | * @param ValidatorInterface $validator |
| 297 | + * @return void |
|
| 269 | 298 | */ |
| 270 | 299 | public function setValidator($validator); |
| 271 | 300 | |
@@ -282,6 +311,9 @@ discard block |
||
| 282 | 311 | // NEXT_MAJOR: uncomment this method in 4.0 |
| 283 | 312 | // public function getList(): ?FieldDescriptionCollection; |
| 284 | 313 | |
| 314 | + /** |
|
| 315 | + * @return void |
|
| 316 | + */ |
|
| 285 | 317 | public function setFormTheme(array $formTheme); |
| 286 | 318 | |
| 287 | 319 | /** |
@@ -289,6 +321,9 @@ discard block |
||
| 289 | 321 | */ |
| 290 | 322 | public function getFormTheme(); |
| 291 | 323 | |
| 324 | + /** |
|
| 325 | + * @return void |
|
| 326 | + */ |
|
| 292 | 327 | public function setFilterTheme(array $filterTheme); |
| 293 | 328 | |
| 294 | 329 | /** |
@@ -296,6 +331,9 @@ discard block |
||
| 296 | 331 | */ |
| 297 | 332 | public function getFilterTheme(); |
| 298 | 333 | |
| 334 | + /** |
|
| 335 | + * @return void |
|
| 336 | + */ |
|
| 299 | 337 | public function addExtension(AdminExtensionInterface $extension); |
| 300 | 338 | |
| 301 | 339 | /** |
@@ -305,6 +343,9 @@ discard block |
||
| 305 | 343 | */ |
| 306 | 344 | public function getExtensions(); |
| 307 | 345 | |
| 346 | + /** |
|
| 347 | + * @return void |
|
| 348 | + */ |
|
| 308 | 349 | public function setRouteBuilder(RouteBuilderInterface $routeBuilder); |
| 309 | 350 | |
| 310 | 351 | /** |
@@ -319,6 +360,9 @@ discard block |
||
| 319 | 360 | */ |
| 320 | 361 | public function toString($object); |
| 321 | 362 | |
| 363 | + /** |
|
| 364 | + * @return void |
|
| 365 | + */ |
|
| 322 | 366 | public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy); |
| 323 | 367 | |
| 324 | 368 | /** |
@@ -342,6 +386,7 @@ discard block |
||
| 342 | 386 | |
| 343 | 387 | /** |
| 344 | 388 | * @param string $uniqId |
| 389 | + * @return void |
|
| 345 | 390 | */ |
| 346 | 391 | public function setUniqid($uniqId); |
| 347 | 392 | |
@@ -361,6 +406,7 @@ discard block |
||
| 361 | 406 | |
| 362 | 407 | /** |
| 363 | 408 | * @param object|null $subject |
| 409 | + * @return void |
|
| 364 | 410 | */ |
| 365 | 411 | public function setSubject($subject); |
| 366 | 412 | |
@@ -398,7 +444,7 @@ discard block |
||
| 398 | 444 | * |
| 399 | 445 | * Returns the collection of list FieldDescriptions. |
| 400 | 446 | * |
| 401 | - * @return array |
|
| 447 | + * @return FieldDescriptionInterface[] |
|
| 402 | 448 | */ |
| 403 | 449 | public function getListFieldDescriptions(); |
| 404 | 450 | |
@@ -416,6 +462,9 @@ discard block |
||
| 416 | 462 | */ |
| 417 | 463 | public function getDataSourceIterator(); |
| 418 | 464 | |
| 465 | + /** |
|
| 466 | + * @return void |
|
| 467 | + */ |
|
| 419 | 468 | public function configure(); |
| 420 | 469 | |
| 421 | 470 | /** |
@@ -423,6 +472,7 @@ discard block |
||
| 423 | 472 | * |
| 424 | 473 | * @param string $actionName |
| 425 | 474 | * @param bool $allElements |
| 475 | + * @return void |
|
| 426 | 476 | */ |
| 427 | 477 | public function preBatchAction($actionName, ProxyQueryInterface $query, array &$idx, $allElements); |
| 428 | 478 | |
@@ -447,6 +497,7 @@ discard block |
||
| 447 | 497 | * |
| 448 | 498 | * @deprecated this feature cannot be stable, use a custom validator, |
| 449 | 499 | * the feature will be removed with Symfony 2.2 |
| 500 | + * @return void |
|
| 450 | 501 | */ |
| 451 | 502 | public function validate(ErrorElement $errorElement, $object); |
| 452 | 503 | |
@@ -461,6 +512,7 @@ discard block |
||
| 461 | 512 | * Add object security, fe. make the current user owner of the object. |
| 462 | 513 | * |
| 463 | 514 | * @param object $object |
| 515 | + * @return void |
|
| 464 | 516 | */ |
| 465 | 517 | public function createObjectSecurity($object); |
| 466 | 518 | |
@@ -469,6 +521,9 @@ discard block |
||
| 469 | 521 | */ |
| 470 | 522 | public function getParent(); |
| 471 | 523 | |
| 524 | + /** |
|
| 525 | + * @return void |
|
| 526 | + */ |
|
| 472 | 527 | public function setParent(self $admin); |
| 473 | 528 | |
| 474 | 529 | /** |
@@ -493,6 +548,7 @@ discard block |
||
| 493 | 548 | * Set the translation domain. |
| 494 | 549 | * |
| 495 | 550 | * @param string $translationDomain the translation domain |
| 551 | + * @return void |
|
| 496 | 552 | */ |
| 497 | 553 | public function setTranslationDomain($translationDomain); |
| 498 | 554 | |
@@ -514,6 +570,7 @@ discard block |
||
| 514 | 570 | |
| 515 | 571 | /** |
| 516 | 572 | * Set the form groups. |
| 573 | + * @return void |
|
| 517 | 574 | */ |
| 518 | 575 | public function setFormGroups(array $formGroups); |
| 519 | 576 | |
@@ -522,6 +579,9 @@ discard block |
||
| 522 | 579 | */ |
| 523 | 580 | public function getFormTabs(); |
| 524 | 581 | |
| 582 | + /** |
|
| 583 | + * @return void |
|
| 584 | + */ |
|
| 525 | 585 | public function setFormTabs(array $formTabs); |
| 526 | 586 | |
| 527 | 587 | /** |
@@ -529,12 +589,16 @@ discard block |
||
| 529 | 589 | */ |
| 530 | 590 | public function getShowTabs(); |
| 531 | 591 | |
| 592 | + /** |
|
| 593 | + * @return void |
|
| 594 | + */ |
|
| 532 | 595 | public function setShowTabs(array $showTabs); |
| 533 | 596 | |
| 534 | 597 | /** |
| 535 | 598 | * Remove a form group field. |
| 536 | 599 | * |
| 537 | 600 | * @param string $key |
| 601 | + * @return void |
|
| 538 | 602 | */ |
| 539 | 603 | public function removeFieldFromFormGroup($key); |
| 540 | 604 | |
@@ -549,6 +613,7 @@ discard block |
||
| 549 | 613 | |
| 550 | 614 | /** |
| 551 | 615 | * Set the show groups. |
| 616 | + * @return void |
|
| 552 | 617 | */ |
| 553 | 618 | public function setShowGroups(array $showGroups); |
| 554 | 619 | |
@@ -556,6 +621,7 @@ discard block |
||
| 556 | 621 | * Reorder items in showGroup. |
| 557 | 622 | * |
| 558 | 623 | * @param string $group |
| 624 | + * @return void |
|
| 559 | 625 | */ |
| 560 | 626 | public function reorderShowGroup($group, array $keys); |
| 561 | 627 | |
@@ -565,6 +631,7 @@ discard block |
||
| 565 | 631 | * add a FieldDescription. |
| 566 | 632 | * |
| 567 | 633 | * @param string $name |
| 634 | + * @return void |
|
| 568 | 635 | */ |
| 569 | 636 | public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription); |
| 570 | 637 | |
@@ -574,6 +641,7 @@ discard block |
||
| 574 | 641 | * Remove a FieldDescription. |
| 575 | 642 | * |
| 576 | 643 | * @param string $name |
| 644 | + * @return void |
|
| 577 | 645 | */ |
| 578 | 646 | public function removeFormFieldDescription($name); |
| 579 | 647 | |
@@ -586,6 +654,7 @@ discard block |
||
| 586 | 654 | |
| 587 | 655 | /** |
| 588 | 656 | * Sets the list of supported sub classes. |
| 657 | + * @return void |
|
| 589 | 658 | */ |
| 590 | 659 | public function setSubClasses(array $subClasses); |
| 591 | 660 | |
@@ -654,6 +723,7 @@ discard block |
||
| 654 | 723 | * Set the current child status. |
| 655 | 724 | * |
| 656 | 725 | * @param bool $currentChild |
| 726 | + * @return void |
|
| 657 | 727 | */ |
| 658 | 728 | public function setCurrentChild($currentChild); |
| 659 | 729 | |
@@ -703,6 +773,7 @@ discard block |
||
| 703 | 773 | |
| 704 | 774 | /** |
| 705 | 775 | * @param string $mode |
| 776 | + * @return void |
|
| 706 | 777 | */ |
| 707 | 778 | public function setListMode($mode); |
| 708 | 779 | |
@@ -185,6 +185,9 @@ |
||
| 185 | 185 | return $acls; |
| 186 | 186 | } |
| 187 | 187 | |
| 188 | + /** |
|
| 189 | + * @param UserSecurityIdentity $securityIdentity |
|
| 190 | + */ |
|
| 188 | 191 | public function addObjectOwner(AclInterface $acl, ?UserSecurityIdentity $securityIdentity = null) |
| 189 | 192 | { |
| 190 | 193 | if (!$acl instanceof MutableAclInterface) { |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * NEXT_MAJOR: Change signature for (Environment $twig, Pool $pool, ?TemplateRegistryInterface $templateRegistry = null). |
| 45 | 45 | * |
| 46 | 46 | * @param Environment|string $twigOrName |
| 47 | - * @param EngineInterface|Pool|null $poolOrTemplating |
|
| 47 | + * @param Pool|null $poolOrTemplating |
|
| 48 | 48 | * @param Pool|TemplateRegistryInterface|null $templateRegistryOrPool |
| 49 | 49 | */ |
| 50 | 50 | public function __construct( |
@@ -45,8 +45,9 @@ |
||
| 45 | 45 | * NEXT_MAJOR: Change signature for (Environment $twig, Pool $pool, SearchHandler $searchHandler). |
| 46 | 46 | * |
| 47 | 47 | * @param Environment|string $twigOrName |
| 48 | - * @param Pool|EngineInterface|null $poolOrTemplating |
|
| 48 | + * @param Pool|null $poolOrTemplating |
|
| 49 | 49 | * @param SearchHandler|Pool $searchHandlerOrPool |
| 50 | + * @param SearchHandler $searchHandler |
|
| 50 | 51 | */ |
| 51 | 52 | public function __construct($twigOrName, ?object $poolOrTemplating, object $searchHandlerOrPool, ?SearchHandler $searchHandler = null) |
| 52 | 53 | { |
@@ -37,7 +37,8 @@ |
||
| 37 | 37 | * NEXT_MAJOR: Change signature for (Environment $twig, Pool $pool). |
| 38 | 38 | * |
| 39 | 39 | * @param Environment|string $twigOrName |
| 40 | - * @param Pool|EngineInterface|null $poolOrTemplating |
|
| 40 | + * @param Pool|null $poolOrTemplating |
|
| 41 | + * @param Pool $pool |
|
| 41 | 42 | */ |
| 42 | 43 | public function __construct($twigOrName, ?object $poolOrTemplating, ?Pool $pool = null) |
| 43 | 44 | { |
@@ -540,6 +540,9 @@ |
||
| 540 | 540 | return $object->{$fieldName}; |
| 541 | 541 | } |
| 542 | 542 | |
| 543 | + /** |
|
| 544 | + * @param string $fieldName |
|
| 545 | + */ |
|
| 543 | 546 | private function cacheFieldGetter(object $object, ?string $fieldName, string $method, ?string $getter = null): void |
| 544 | 547 | { |
| 545 | 548 | $getterKey = $this->getFieldGetterKey($object, $fieldName); |
@@ -36,6 +36,7 @@ discard block |
||
| 36 | 36 | * @param object $object |
| 37 | 37 | * |
| 38 | 38 | * @throws ModelManagerException |
| 39 | + * @return void |
|
| 39 | 40 | */ |
| 40 | 41 | public function create($object); |
| 41 | 42 | |
@@ -43,6 +44,7 @@ discard block |
||
| 43 | 44 | * @param object $object |
| 44 | 45 | * |
| 45 | 46 | * @throws ModelManagerException |
| 47 | + * @return void |
|
| 46 | 48 | */ |
| 47 | 49 | public function update($object); |
| 48 | 50 | |
@@ -50,6 +52,7 @@ discard block |
||
| 50 | 52 | * @param object $object |
| 51 | 53 | * |
| 52 | 54 | * @throws ModelManagerException |
| 55 | + * @return void |
|
| 53 | 56 | */ |
| 54 | 57 | public function delete($object); |
| 55 | 58 | |
@@ -71,7 +74,7 @@ discard block |
||
| 71 | 74 | * @param string $class |
| 72 | 75 | * @param mixed $id |
| 73 | 76 | * |
| 74 | - * @return object|null the object with id or null if not found |
|
| 77 | + * @return \Sonata\AdminBundle\Tests\App\Model\Foo|null the object with id or null if not found |
|
| 75 | 78 | */ |
| 76 | 79 | public function find($class, $id); |
| 77 | 80 | |
@@ -79,6 +82,7 @@ discard block |
||
| 79 | 82 | * @param string $class |
| 80 | 83 | * |
| 81 | 84 | * @throws ModelManagerException |
| 85 | + * @return void |
|
| 82 | 86 | */ |
| 83 | 87 | public function batchDelete($class, ProxyQueryInterface $queryProxy); |
| 84 | 88 | |
@@ -90,6 +94,7 @@ discard block |
||
| 90 | 94 | * |
| 91 | 95 | * @param array $parentAssociationMapping |
| 92 | 96 | * @param string $class |
| 97 | + * @return FieldDescriptionInterface |
|
| 93 | 98 | */ |
| 94 | 99 | public function getParentFieldDescription($parentAssociationMapping, $class); |
| 95 | 100 | |
@@ -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 collectionRemoveElement(&$collection, &$element); |
| 185 | 191 | |
@@ -188,6 +194,7 @@ discard block |
||
| 188 | 194 | * |
| 189 | 195 | * @param array $collection |
| 190 | 196 | * @param object $element |
| 197 | + * @return void |
|
| 191 | 198 | */ |
| 192 | 199 | public function collectionAddElement(&$collection, &$element); |
| 193 | 200 | |
@@ -205,6 +212,7 @@ discard block |
||
| 205 | 212 | * Clear the collection. |
| 206 | 213 | * |
| 207 | 214 | * @param array $collection |
| 215 | + * @return void |
|
| 208 | 216 | */ |
| 209 | 217 | public function collectionClear(&$collection); |
| 210 | 218 | |
@@ -235,6 +243,7 @@ discard block |
||
| 235 | 243 | |
| 236 | 244 | /** |
| 237 | 245 | * @param mixed $query |
| 246 | + * @return void |
|
| 238 | 247 | */ |
| 239 | 248 | public function executeQuery($query); |
| 240 | 249 | |
@@ -272,6 +281,7 @@ discard block |
||
| 272 | 281 | |
| 273 | 282 | /** |
| 274 | 283 | * @param string $class |
| 284 | + * @return void |
|
| 275 | 285 | */ |
| 276 | 286 | public function addIdentifiersToQuery($class, ProxyQueryInterface $query, array $idx); |
| 277 | 287 | } |