@@ -40,24 +40,54 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface |
| 42 | 42 | { |
| 43 | + /** |
|
| 44 | + * @return void |
|
| 45 | + */ |
|
| 43 | 46 | public function setMenuFactory(FactoryInterface $menuFactory): void; |
| 44 | 47 | |
| 48 | + /** |
|
| 49 | + * @return FactoryInterface |
|
| 50 | + */ |
|
| 45 | 51 | public function getMenuFactory(): ?FactoryInterface; |
| 46 | 52 | |
| 53 | + /** |
|
| 54 | + * @return void |
|
| 55 | + */ |
|
| 47 | 56 | public function setFormContractor(FormContractorInterface $formContractor): void; |
| 48 | 57 | |
| 58 | + /** |
|
| 59 | + * @return void |
|
| 60 | + */ |
|
| 49 | 61 | public function setListBuilder(ListBuilderInterface $listBuilder): void; |
| 50 | 62 | |
| 63 | + /** |
|
| 64 | + * @return ListBuilderInterface |
|
| 65 | + */ |
|
| 51 | 66 | public function getListBuilder(): ?ListBuilderInterface; |
| 52 | 67 | |
| 68 | + /** |
|
| 69 | + * @return void |
|
| 70 | + */ |
|
| 53 | 71 | public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder): void; |
| 54 | 72 | |
| 73 | + /** |
|
| 74 | + * @return DatagridBuilderInterface |
|
| 75 | + */ |
|
| 55 | 76 | public function getDatagridBuilder(): ?DatagridBuilderInterface; |
| 56 | 77 | |
| 78 | + /** |
|
| 79 | + * @return void |
|
| 80 | + */ |
|
| 57 | 81 | public function setTranslator(TranslatorInterface $translator): void; |
| 58 | 82 | |
| 83 | + /** |
|
| 84 | + * @return void |
|
| 85 | + */ |
|
| 59 | 86 | public function setRequest(Request $request): void; |
| 60 | 87 | |
| 88 | + /** |
|
| 89 | + * @return void |
|
| 90 | + */ |
|
| 61 | 91 | public function setConfigurationPool(Pool $pool): void; |
| 62 | 92 | |
| 63 | 93 | /** |
@@ -68,6 +98,9 @@ discard block |
||
| 68 | 98 | */ |
| 69 | 99 | public function getClass(): string; |
| 70 | 100 | |
| 101 | + /** |
|
| 102 | + * @return void |
|
| 103 | + */ |
|
| 71 | 104 | public function attachAdminClass(FieldDescriptionInterface $fieldDescription): void; |
| 72 | 105 | |
| 73 | 106 | public function getDatagrid(): DatagridInterface; |
@@ -76,6 +109,7 @@ discard block |
||
| 76 | 109 | |
| 77 | 110 | /** |
| 78 | 111 | * Set base controller name. |
| 112 | + * @return void |
|
| 79 | 113 | */ |
| 80 | 114 | public function setBaseControllerName(string $baseControllerName): void; |
| 81 | 115 | |
@@ -86,14 +120,19 @@ discard block |
||
| 86 | 120 | |
| 87 | 121 | /** |
| 88 | 122 | * Sets a list of templates. |
| 123 | + * @return void |
|
| 89 | 124 | */ |
| 90 | 125 | public function setTemplates(array $templates): void; |
| 91 | 126 | |
| 92 | 127 | /** |
| 93 | 128 | * Sets a specific template. |
| 129 | + * @return void |
|
| 94 | 130 | */ |
| 95 | 131 | public function setTemplate(string $name, string $template): void; |
| 96 | 132 | |
| 133 | + /** |
|
| 134 | + * @return ModelManagerInterface |
|
| 135 | + */ |
|
| 97 | 136 | public function getModelManager(): ?ModelManagerInterface; |
| 98 | 137 | |
| 99 | 138 | /** |
@@ -110,6 +149,7 @@ discard block |
||
| 110 | 149 | |
| 111 | 150 | /** |
| 112 | 151 | * Returns a form depend on the given $object. |
| 152 | + * @return FormInterface|null |
|
| 113 | 153 | */ |
| 114 | 154 | public function getForm(): ?FormInterface; |
| 115 | 155 | |
@@ -135,6 +175,9 @@ discard block |
||
| 135 | 175 | */ |
| 136 | 176 | public function getSecurityInformation(): array; |
| 137 | 177 | |
| 178 | + /** |
|
| 179 | + * @return void |
|
| 180 | + */ |
|
| 138 | 181 | public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription): void; |
| 139 | 182 | |
| 140 | 183 | /** |
@@ -159,8 +202,14 @@ discard block |
||
| 159 | 202 | */ |
| 160 | 203 | public function hasRoute(string $name): bool; |
| 161 | 204 | |
| 205 | + /** |
|
| 206 | + * @return void |
|
| 207 | + */ |
|
| 162 | 208 | public function setSecurityHandler(SecurityHandlerInterface $securityHandler): void; |
| 163 | 209 | |
| 210 | + /** |
|
| 211 | + * @return SecurityHandlerInterface |
|
| 212 | + */ |
|
| 164 | 213 | public function getSecurityHandler(): ?SecurityHandlerInterface; |
| 165 | 214 | |
| 166 | 215 | /** |
@@ -173,16 +222,34 @@ discard block |
||
| 173 | 222 | */ |
| 174 | 223 | public function getNormalizedIdentifier(object $model): ?string; |
| 175 | 224 | |
| 225 | + /** |
|
| 226 | + * @return string |
|
| 227 | + */ |
|
| 176 | 228 | public function id(object $model): ?string; |
| 177 | 229 | |
| 230 | + /** |
|
| 231 | + * @return void |
|
| 232 | + */ |
|
| 178 | 233 | public function setValidator(ValidatorInterface $validator): void; |
| 179 | 234 | |
| 235 | + /** |
|
| 236 | + * @return ValidatorInterface |
|
| 237 | + */ |
|
| 180 | 238 | public function getValidator(): ?ValidatorInterface; |
| 181 | 239 | |
| 240 | + /** |
|
| 241 | + * @return FieldDescriptionCollection|null |
|
| 242 | + */ |
|
| 182 | 243 | public function getShow(): ?FieldDescriptionCollection; |
| 183 | 244 | |
| 245 | + /** |
|
| 246 | + * @return void |
|
| 247 | + */ |
|
| 184 | 248 | public function setFormTheme(array $formTheme): void; |
| 185 | 249 | |
| 250 | + /** |
|
| 251 | + * @return FieldDescriptionCollection|null |
|
| 252 | + */ |
|
| 186 | 253 | public function getList(): ?FieldDescriptionCollection; |
| 187 | 254 | |
| 188 | 255 | /** |
@@ -190,6 +257,9 @@ discard block |
||
| 190 | 257 | */ |
| 191 | 258 | public function getFormTheme(): array; |
| 192 | 259 | |
| 260 | + /** |
|
| 261 | + * @return void |
|
| 262 | + */ |
|
| 193 | 263 | public function setFilterTheme(array $filterTheme): void; |
| 194 | 264 | |
| 195 | 265 | /** |
@@ -197,6 +267,9 @@ discard block |
||
| 197 | 267 | */ |
| 198 | 268 | public function getFilterTheme(): array; |
| 199 | 269 | |
| 270 | + /** |
|
| 271 | + * @return void |
|
| 272 | + */ |
|
| 200 | 273 | public function addExtension(AdminExtensionInterface $extension): void; |
| 201 | 274 | |
| 202 | 275 | /** |
@@ -206,14 +279,26 @@ discard block |
||
| 206 | 279 | */ |
| 207 | 280 | public function getExtensions(): array; |
| 208 | 281 | |
| 282 | + /** |
|
| 283 | + * @return void |
|
| 284 | + */ |
|
| 209 | 285 | public function setRouteBuilder(RouteBuilderInterface $routeBuilder): void; |
| 210 | 286 | |
| 287 | + /** |
|
| 288 | + * @return RouteBuilderInterface |
|
| 289 | + */ |
|
| 211 | 290 | public function getRouteBuilder(): ?RouteBuilderInterface; |
| 212 | 291 | |
| 213 | 292 | public function toString(object $object): string; |
| 214 | 293 | |
| 294 | + /** |
|
| 295 | + * @return void |
|
| 296 | + */ |
|
| 215 | 297 | public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy): void; |
| 216 | 298 | |
| 299 | + /** |
|
| 300 | + * @return LabelTranslatorStrategyInterface |
|
| 301 | + */ |
|
| 217 | 302 | public function getLabelTranslatorStrategy(): ?LabelTranslatorStrategyInterface; |
| 218 | 303 | |
| 219 | 304 | /** |
@@ -225,6 +310,9 @@ discard block |
||
| 225 | 310 | |
| 226 | 311 | public function getNewInstance(): object; |
| 227 | 312 | |
| 313 | + /** |
|
| 314 | + * @return void |
|
| 315 | + */ |
|
| 228 | 316 | public function setUniqid(string $uniqId): void; |
| 229 | 317 | |
| 230 | 318 | /** |
@@ -244,6 +332,9 @@ discard block |
||
| 244 | 332 | */ |
| 245 | 333 | public function getObject($id): ?object; |
| 246 | 334 | |
| 335 | + /** |
|
| 336 | + * @return void |
|
| 337 | + */ |
|
| 247 | 338 | public function setSubject(?object $subject): void; |
| 248 | 339 | |
| 249 | 340 | public function getSubject(): object; |
@@ -267,6 +358,7 @@ discard block |
||
| 267 | 358 | |
| 268 | 359 | /** |
| 269 | 360 | * Call before the batch action, allow you to alter the query and the idx. |
| 361 | + * @return void |
|
| 270 | 362 | */ |
| 271 | 363 | public function preBatchAction(string $actionName, ProxyQueryInterface $query, array &$idx, bool $allElements = false): void; |
| 272 | 364 | |
@@ -289,6 +381,7 @@ discard block |
||
| 289 | 381 | * |
| 290 | 382 | * @deprecated this feature cannot be stable, use a custom validator, |
| 291 | 383 | * the feature will be removed with Symfony 2.2 |
| 384 | + * @return void |
|
| 292 | 385 | */ |
| 293 | 386 | public function validate(ErrorElement $errorElement, $object): void; |
| 294 | 387 | |
@@ -296,11 +389,15 @@ discard block |
||
| 296 | 389 | |
| 297 | 390 | /** |
| 298 | 391 | * Add object security, fe. make the current user owner of the object. |
| 392 | + * @return void |
|
| 299 | 393 | */ |
| 300 | 394 | public function createObjectSecurity(object $object): void; |
| 301 | 395 | |
| 302 | 396 | public function getParent(): self; |
| 303 | 397 | |
| 398 | + /** |
|
| 399 | + * @return void |
|
| 400 | + */ |
|
| 304 | 401 | public function setParent(self $admin): void; |
| 305 | 402 | |
| 306 | 403 | /** |
@@ -312,6 +409,7 @@ discard block |
||
| 312 | 409 | * Set the translation domain. |
| 313 | 410 | * |
| 314 | 411 | * @param string $translationDomain the translation domain |
| 412 | + * @return void |
|
| 315 | 413 | */ |
| 316 | 414 | public function setTranslationDomain(string $translationDomain): void; |
| 317 | 415 | |
@@ -331,6 +429,7 @@ discard block |
||
| 331 | 429 | |
| 332 | 430 | /** |
| 333 | 431 | * Set the form groups. |
| 432 | + * @return void |
|
| 334 | 433 | */ |
| 335 | 434 | public function setFormGroups(array $formGroups): void; |
| 336 | 435 | |
@@ -339,6 +438,9 @@ discard block |
||
| 339 | 438 | */ |
| 340 | 439 | public function getFormTabs(): array; |
| 341 | 440 | |
| 441 | + /** |
|
| 442 | + * @return void |
|
| 443 | + */ |
|
| 342 | 444 | public function setFormTabs(array $formTabs): void; |
| 343 | 445 | |
| 344 | 446 | /** |
@@ -346,10 +448,14 @@ discard block |
||
| 346 | 448 | */ |
| 347 | 449 | public function getShowTabs(): array; |
| 348 | 450 | |
| 451 | + /** |
|
| 452 | + * @return void |
|
| 453 | + */ |
|
| 349 | 454 | public function setShowTabs(array $showTabs): void; |
| 350 | 455 | |
| 351 | 456 | /** |
| 352 | 457 | * Remove a form group field. |
| 458 | + * @return void |
|
| 353 | 459 | */ |
| 354 | 460 | public function removeFieldFromFormGroup(string $key): void; |
| 355 | 461 | |
@@ -362,11 +468,13 @@ discard block |
||
| 362 | 468 | |
| 363 | 469 | /** |
| 364 | 470 | * Set the show groups. |
| 471 | + * @return void |
|
| 365 | 472 | */ |
| 366 | 473 | public function setShowGroups(array $showGroups): void; |
| 367 | 474 | |
| 368 | 475 | /** |
| 369 | 476 | * Reorder items in showGroup. |
| 477 | + * @return void |
|
| 370 | 478 | */ |
| 371 | 479 | public function reorderShowGroup(string $group, array $keys): void; |
| 372 | 480 | |
@@ -382,6 +490,7 @@ discard block |
||
| 382 | 490 | |
| 383 | 491 | /** |
| 384 | 492 | * Sets the list of supported sub classes. |
| 493 | + * @return void |
|
| 385 | 494 | */ |
| 386 | 495 | public function setSubClasses(array $subClasses): void; |
| 387 | 496 | |
@@ -420,6 +529,7 @@ discard block |
||
| 420 | 529 | |
| 421 | 530 | /** |
| 422 | 531 | * Returns Admin`s label. |
| 532 | + * @return string |
|
| 423 | 533 | */ |
| 424 | 534 | public function getLabel(): ?string; |
| 425 | 535 | |
@@ -434,6 +544,7 @@ discard block |
||
| 434 | 544 | |
| 435 | 545 | /** |
| 436 | 546 | * Set the current child status. |
| 547 | + * @return void |
|
| 437 | 548 | */ |
| 438 | 549 | public function setCurrentChild(bool $currentChild): void; |
| 439 | 550 | |
@@ -454,6 +565,9 @@ discard block |
||
| 454 | 565 | */ |
| 455 | 566 | public function getListModes(): array; |
| 456 | 567 | |
| 568 | + /** |
|
| 569 | + * @return void |
|
| 570 | + */ |
|
| 457 | 571 | public function setListMode(string $mode): void; |
| 458 | 572 | |
| 459 | 573 | /** |
@@ -478,12 +592,14 @@ discard block |
||
| 478 | 592 | |
| 479 | 593 | /** |
| 480 | 594 | * Returns the result link for an object. |
| 595 | + * @return string|null |
|
| 481 | 596 | */ |
| 482 | 597 | public function getSearchResultLink(object $object): ?string; |
| 483 | 598 | |
| 484 | 599 | /** |
| 485 | 600 | * Setting to true will enable mosaic button for the admin screen. |
| 486 | 601 | * Setting to false will hide mosaic button for the admin screen. |
| 602 | + * @return void |
|
| 487 | 603 | */ |
| 488 | 604 | public function showMosaicButton(bool $isShown): void; |
| 489 | 605 | |
@@ -504,6 +620,9 @@ discard block |
||
| 504 | 620 | */ |
| 505 | 621 | public function getRootCode(): string; |
| 506 | 622 | |
| 623 | + /** |
|
| 624 | + * @return void |
|
| 625 | + */ |
|
| 507 | 626 | public function setFilterPersister(?FilterPersisterInterface $filterPersister = null): void; |
| 508 | 627 | |
| 509 | 628 | /** |
@@ -516,14 +635,24 @@ discard block |
||
| 516 | 635 | */ |
| 517 | 636 | public function getBaseRouteName(): string; |
| 518 | 637 | |
| 638 | + /** |
|
| 639 | + * @param AbstractAdmin $childAdmin |
|
| 640 | + */ |
|
| 519 | 641 | public function getSideMenu(string $action, ?self $childAdmin = null): ItemInterface; |
| 520 | 642 | |
| 643 | + /** |
|
| 644 | + * @return void |
|
| 645 | + */ |
|
| 521 | 646 | public function addParentAssociationMapping(string $code, string $value): void; |
| 522 | 647 | |
| 648 | + /** |
|
| 649 | + * @return RouteGeneratorInterface|null |
|
| 650 | + */ |
|
| 523 | 651 | public function getRouteGenerator(): ?RouteGeneratorInterface; |
| 524 | 652 | |
| 525 | 653 | /** |
| 526 | 654 | * Returns the current child admin instance. |
| 655 | + * @return AdminInterface|null |
|
| 527 | 656 | */ |
| 528 | 657 | public function getCurrentChildAdmin(): ?self; |
| 529 | 658 | |
@@ -533,11 +662,15 @@ discard block |
||
| 533 | 662 | */ |
| 534 | 663 | public function getParentAssociationMapping(): ?string; |
| 535 | 664 | |
| 665 | + /** |
|
| 666 | + * @return void |
|
| 667 | + */ |
|
| 536 | 668 | public function reorderFormGroup(string $group, array $keys): void; |
| 537 | 669 | |
| 538 | 670 | /** |
| 539 | 671 | * This method is being called by the main admin class and the child class, |
| 540 | 672 | * the getFormBuilder is only call by the main admin class. |
| 673 | + * @return void |
|
| 541 | 674 | */ |
| 542 | 675 | public function defineFormBuilder(FormBuilderInterface $formBuilder): void; |
| 543 | 676 | } |