@@ -34,6 +34,9 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function getRouterIdParameter(): string; |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @return void |
|
| 39 | + */ |
|
| 37 | 40 | public function setRouteGenerator(RouteGeneratorInterface $routeGenerator): void; |
| 38 | 41 | |
| 39 | 42 | /** |
@@ -29,6 +29,7 @@ |
||
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * Hook to handle access authorization. |
| 32 | + * @return void |
|
| 32 | 33 | */ |
| 33 | 34 | public function checkAccess(string $action, ?object $object = null): void; |
| 34 | 35 | |
@@ -27,16 +27,34 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | interface AdminExtensionInterface |
| 29 | 29 | { |
| 30 | + /** |
|
| 31 | + * @return void |
|
| 32 | + */ |
|
| 30 | 33 | public function configureFormFields(FormMapper $formMapper): void; |
| 31 | 34 | |
| 35 | + /** |
|
| 36 | + * @return void |
|
| 37 | + */ |
|
| 32 | 38 | public function configureListFields(ListMapper $listMapper): void; |
| 33 | 39 | |
| 40 | + /** |
|
| 41 | + * @return void |
|
| 42 | + */ |
|
| 34 | 43 | public function configureDatagridFilters(DatagridMapper $datagridMapper): void; |
| 35 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 36 | 48 | public function configureShowFields(ShowMapper $showMapper): void; |
| 37 | 49 | |
| 50 | + /** |
|
| 51 | + * @return void |
|
| 52 | + */ |
|
| 38 | 53 | public function configureRoutes(AdminInterface $admin, RouteCollectionInterface $collection): void; |
| 39 | 54 | |
| 55 | + /** |
|
| 56 | + * @return void |
|
| 57 | + */ |
|
| 40 | 58 | public function configureTabMenu( |
| 41 | 59 | AdminInterface $admin, |
| 42 | 60 | MenuItemInterface $menu, |
@@ -44,17 +62,25 @@ discard block |
||
| 44 | 62 | ?AdminInterface $childAdmin = null |
| 45 | 63 | ): void; |
| 46 | 64 | |
| 65 | + /** |
|
| 66 | + * @return void |
|
| 67 | + */ |
|
| 47 | 68 | public function validate(AdminInterface $admin, ErrorElement $errorElement, object $object): void; |
| 48 | 69 | |
| 70 | + /** |
|
| 71 | + * @return void |
|
| 72 | + */ |
|
| 49 | 73 | public function configureQuery(AdminInterface $admin, ProxyQueryInterface $query): void; |
| 50 | 74 | |
| 51 | 75 | /** |
| 52 | 76 | * Get a chance to modify a newly created instance. |
| 77 | + * @return void |
|
| 53 | 78 | */ |
| 54 | 79 | public function alterNewInstance(AdminInterface $admin, object $object): void; |
| 55 | 80 | |
| 56 | 81 | /** |
| 57 | 82 | * Get a chance to modify object instance. |
| 83 | + * @return void |
|
| 58 | 84 | */ |
| 59 | 85 | public function alterObject(AdminInterface $admin, object $object): void; |
| 60 | 86 | |
@@ -90,16 +116,34 @@ discard block |
||
| 90 | 116 | */ |
| 91 | 117 | public function configureExportFields(AdminInterface $admin, array $fields): array; |
| 92 | 118 | |
| 119 | + /** |
|
| 120 | + * @return void |
|
| 121 | + */ |
|
| 93 | 122 | public function preUpdate(AdminInterface $admin, object $object): void; |
| 94 | 123 | |
| 124 | + /** |
|
| 125 | + * @return void |
|
| 126 | + */ |
|
| 95 | 127 | public function postUpdate(AdminInterface $admin, object $object): void; |
| 96 | 128 | |
| 129 | + /** |
|
| 130 | + * @return void |
|
| 131 | + */ |
|
| 97 | 132 | public function prePersist(AdminInterface $admin, object $object): void; |
| 98 | 133 | |
| 134 | + /** |
|
| 135 | + * @return void |
|
| 136 | + */ |
|
| 99 | 137 | public function postPersist(AdminInterface $admin, object $object): void; |
| 100 | 138 | |
| 139 | + /** |
|
| 140 | + * @return void |
|
| 141 | + */ |
|
| 101 | 142 | public function preRemove(AdminInterface $admin, object $object): void; |
| 102 | 143 | |
| 144 | + /** |
|
| 145 | + * @return void |
|
| 146 | + */ |
|
| 103 | 147 | public function postRemove(AdminInterface $admin, object $object): void; |
| 104 | 148 | |
| 105 | 149 | /** |
@@ -120,6 +164,7 @@ discard block |
||
| 120 | 164 | * Returns a list of default filters. |
| 121 | 165 | * |
| 122 | 166 | * @param array<string, array<string, mixed>> $filterValues |
| 167 | + * @return void |
|
| 123 | 168 | */ |
| 124 | 169 | public function configureDefaultFilterValues(AdminInterface $admin, array &$filterValues): void; |
| 125 | 170 | |
@@ -127,6 +172,7 @@ discard block |
||
| 127 | 172 | * Returns a list of default sort values. |
| 128 | 173 | * |
| 129 | 174 | * @param array{_page?: int, _per_page?: int, _sort_by?: string, _sort_order?: string} $sortValues |
| 175 | + * @return void |
|
| 130 | 176 | */ |
| 131 | 177 | public function configureDefaultSortValues(AdminInterface $admin, array &$sortValues): void; |
| 132 | 178 | } |
@@ -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|null |
|
| 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|null |
|
| 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|null |
|
| 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,12 +98,16 @@ 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; |
| 74 | 107 | |
| 75 | 108 | /** |
| 76 | 109 | * Set base controller name. |
| 110 | + * @return void |
|
| 77 | 111 | */ |
| 78 | 112 | public function setBaseControllerName(string $baseControllerName): void; |
| 79 | 113 | |
@@ -86,20 +120,34 @@ discard block |
||
| 86 | 120 | * Sets a list of templates. |
| 87 | 121 | * |
| 88 | 122 | * @param array<string, string> $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 void |
|
| 135 | + */ |
|
| 97 | 136 | public function setModelManager(ModelManagerInterface $modelManager): void; |
| 98 | 137 | |
| 138 | + /** |
|
| 139 | + * @return ModelManagerInterface |
|
| 140 | + */ |
|
| 99 | 141 | public function getModelManager(): ?ModelManagerInterface; |
| 100 | 142 | |
| 143 | + /** |
|
| 144 | + * @return void |
|
| 145 | + */ |
|
| 101 | 146 | public function setManagerType(string $managerType): void; |
| 102 | 147 | |
| 148 | + /** |
|
| 149 | + * @return string|null |
|
| 150 | + */ |
|
| 103 | 151 | public function getManagerType(): ?string; |
| 104 | 152 | |
| 105 | 153 | public function createQuery(): ProxyQueryInterface; |
@@ -132,6 +180,9 @@ discard block |
||
| 132 | 180 | */ |
| 133 | 181 | public function getSecurityInformation(): array; |
| 134 | 182 | |
| 183 | + /** |
|
| 184 | + * @return void |
|
| 185 | + */ |
|
| 135 | 186 | public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription): void; |
| 136 | 187 | |
| 137 | 188 | public function getParentFieldDescription(): FieldDescriptionInterface; |
@@ -151,8 +202,14 @@ discard block |
||
| 151 | 202 | */ |
| 152 | 203 | public function hasRoute(string $name): bool; |
| 153 | 204 | |
| 205 | + /** |
|
| 206 | + * @return void |
|
| 207 | + */ |
|
| 154 | 208 | public function setSecurityHandler(SecurityHandlerInterface $securityHandler): void; |
| 155 | 209 | |
| 210 | + /** |
|
| 211 | + * @return SecurityHandlerInterface |
|
| 212 | + */ |
|
| 156 | 213 | public function getSecurityHandler(): ?SecurityHandlerInterface; |
| 157 | 214 | |
| 158 | 215 | public function isGranted(string $name, ?object $object = null): bool; |
@@ -164,17 +221,25 @@ discard block |
||
| 164 | 221 | |
| 165 | 222 | /** |
| 166 | 223 | * Shorthand method for templating. |
| 224 | + * @return string |
|
| 167 | 225 | */ |
| 168 | 226 | public function id(object $model): ?string; |
| 169 | 227 | |
| 228 | + /** |
|
| 229 | + * @return void |
|
| 230 | + */ |
|
| 170 | 231 | public function setValidator(ValidatorInterface $validator): void; |
| 171 | 232 | |
| 233 | + /** |
|
| 234 | + * @return ValidatorInterface|null |
|
| 235 | + */ |
|
| 172 | 236 | public function getValidator(): ?ValidatorInterface; |
| 173 | 237 | |
| 174 | 238 | public function getShow(): FieldDescriptionCollection; |
| 175 | 239 | |
| 176 | 240 | /** |
| 177 | 241 | * @param string[] $formTheme |
| 242 | + * @return void |
|
| 178 | 243 | */ |
| 179 | 244 | public function setFormTheme(array $formTheme): void; |
| 180 | 245 | |
@@ -187,6 +252,7 @@ discard block |
||
| 187 | 252 | |
| 188 | 253 | /** |
| 189 | 254 | * @param string[] $filterTheme |
| 255 | + * @return void |
|
| 190 | 256 | */ |
| 191 | 257 | public function setFilterTheme(array $filterTheme): void; |
| 192 | 258 | |
@@ -195,6 +261,9 @@ discard block |
||
| 195 | 261 | */ |
| 196 | 262 | public function getFilterTheme(): array; |
| 197 | 263 | |
| 264 | + /** |
|
| 265 | + * @return void |
|
| 266 | + */ |
|
| 198 | 267 | public function addExtension(AdminExtensionInterface $extension): void; |
| 199 | 268 | |
| 200 | 269 | /** |
@@ -204,14 +273,26 @@ discard block |
||
| 204 | 273 | */ |
| 205 | 274 | public function getExtensions(): array; |
| 206 | 275 | |
| 276 | + /** |
|
| 277 | + * @return void |
|
| 278 | + */ |
|
| 207 | 279 | public function setRouteBuilder(RouteBuilderInterface $routeBuilder): void; |
| 208 | 280 | |
| 281 | + /** |
|
| 282 | + * @return RouteBuilderInterface|null |
|
| 283 | + */ |
|
| 209 | 284 | public function getRouteBuilder(): ?RouteBuilderInterface; |
| 210 | 285 | |
| 211 | 286 | public function toString(?object $object): string; |
| 212 | 287 | |
| 288 | + /** |
|
| 289 | + * @return void |
|
| 290 | + */ |
|
| 213 | 291 | public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy): void; |
| 214 | 292 | |
| 293 | + /** |
|
| 294 | + * @return LabelTranslatorStrategyInterface |
|
| 295 | + */ |
|
| 215 | 296 | public function getLabelTranslatorStrategy(): ?LabelTranslatorStrategyInterface; |
| 216 | 297 | |
| 217 | 298 | /** |
@@ -223,6 +304,9 @@ discard block |
||
| 223 | 304 | |
| 224 | 305 | public function getNewInstance(): object; |
| 225 | 306 | |
| 307 | + /** |
|
| 308 | + * @return void |
|
| 309 | + */ |
|
| 226 | 310 | public function setUniqid(string $uniqId): void; |
| 227 | 311 | |
| 228 | 312 | public function getUniqid(): string; |
@@ -234,6 +318,9 @@ discard block |
||
| 234 | 318 | */ |
| 235 | 319 | public function getObject($id): ?object; |
| 236 | 320 | |
| 321 | + /** |
|
| 322 | + * @return void |
|
| 323 | + */ |
|
| 237 | 324 | public function setSubject(?object $subject): void; |
| 238 | 325 | |
| 239 | 326 | public function getSubject(): object; |
@@ -258,6 +345,7 @@ discard block |
||
| 258 | 345 | * Call before the batch action, allow you to alter the query and the idx. |
| 259 | 346 | * |
| 260 | 347 | * @param mixed[] $idx |
| 348 | + * @return void |
|
| 261 | 349 | */ |
| 262 | 350 | public function preBatchAction(string $actionName, ProxyQueryInterface $query, array &$idx, bool $allElements = false): void; |
| 263 | 351 | |
@@ -278,6 +366,7 @@ discard block |
||
| 278 | 366 | * |
| 279 | 367 | * @deprecated this feature cannot be stable, use a custom validator, |
| 280 | 368 | * the feature will be removed with Symfony 2.2 |
| 369 | + * @return void |
|
| 281 | 370 | */ |
| 282 | 371 | public function validate(ErrorElement $errorElement, object $object): void; |
| 283 | 372 | |
@@ -285,11 +374,15 @@ discard block |
||
| 285 | 374 | |
| 286 | 375 | /** |
| 287 | 376 | * Add object security, fe. make the current user owner of the object. |
| 377 | + * @return void |
|
| 288 | 378 | */ |
| 289 | 379 | public function createObjectSecurity(object $object): void; |
| 290 | 380 | |
| 291 | 381 | public function getParent(): self; |
| 292 | 382 | |
| 383 | + /** |
|
| 384 | + * @return void |
|
| 385 | + */ |
|
| 293 | 386 | public function setParent(self $admin): void; |
| 294 | 387 | |
| 295 | 388 | /** |
@@ -297,6 +390,9 @@ discard block |
||
| 297 | 390 | */ |
| 298 | 391 | public function isChild(): bool; |
| 299 | 392 | |
| 393 | + /** |
|
| 394 | + * @return void |
|
| 395 | + */ |
|
| 300 | 396 | public function setTranslationDomain(string $translationDomain): void; |
| 301 | 397 | |
| 302 | 398 | public function getTranslationDomain(): string; |
@@ -308,6 +404,7 @@ discard block |
||
| 308 | 404 | |
| 309 | 405 | /** |
| 310 | 406 | * @param array<string, mixed> $formGroups |
| 407 | + * @return void |
|
| 311 | 408 | */ |
| 312 | 409 | public function setFormGroups(array $formGroups): void; |
| 313 | 410 | |
@@ -318,6 +415,7 @@ discard block |
||
| 318 | 415 | |
| 319 | 416 | /** |
| 320 | 417 | * @param array<string, mixed> $formTabs |
| 418 | + * @return void |
|
| 321 | 419 | */ |
| 322 | 420 | public function setFormTabs(array $formTabs): void; |
| 323 | 421 | |
@@ -328,9 +426,13 @@ discard block |
||
| 328 | 426 | |
| 329 | 427 | /** |
| 330 | 428 | * @param array<string, mixed> $showTabs |
| 429 | + * @return void |
|
| 331 | 430 | */ |
| 332 | 431 | public function setShowTabs(array $showTabs): void; |
| 333 | 432 | |
| 433 | + /** |
|
| 434 | + * @return void |
|
| 435 | + */ |
|
| 334 | 436 | public function removeFieldFromFormGroup(string $key): void; |
| 335 | 437 | |
| 336 | 438 | /** |
@@ -340,6 +442,7 @@ discard block |
||
| 340 | 442 | |
| 341 | 443 | /** |
| 342 | 444 | * @param array<string, mixed> $showGroups |
| 445 | + * @return void |
|
| 343 | 446 | */ |
| 344 | 447 | public function setShowGroups(array $showGroups): void; |
| 345 | 448 | |
@@ -347,6 +450,7 @@ discard block |
||
| 347 | 450 | * Reorder items in showGroup. |
| 348 | 451 | * |
| 349 | 452 | * @param string[] $keys |
| 453 | + * @return void |
|
| 350 | 454 | */ |
| 351 | 455 | public function reorderShowGroup(string $group, array $keys): void; |
| 352 | 456 | |
@@ -366,6 +470,7 @@ discard block |
||
| 366 | 470 | * Sets the list of supported sub classes. |
| 367 | 471 | * |
| 368 | 472 | * @param array<string, class-string> $subClasses |
| 473 | + * @return void |
|
| 369 | 474 | */ |
| 370 | 475 | public function setSubClasses(array $subClasses): void; |
| 371 | 476 | |
@@ -398,6 +503,7 @@ discard block |
||
| 398 | 503 | |
| 399 | 504 | /** |
| 400 | 505 | * Returns Admin`s label. |
| 506 | + * @return string|null |
|
| 401 | 507 | */ |
| 402 | 508 | public function getLabel(): ?string; |
| 403 | 509 | |
@@ -415,6 +521,7 @@ discard block |
||
| 415 | 521 | |
| 416 | 522 | /** |
| 417 | 523 | * Set the current child status. |
| 524 | + * @return void |
|
| 418 | 525 | */ |
| 419 | 526 | public function setCurrentChild(bool $currentChild): void; |
| 420 | 527 | |
@@ -435,6 +542,9 @@ discard block |
||
| 435 | 542 | */ |
| 436 | 543 | public function getListModes(): array; |
| 437 | 544 | |
| 545 | + /** |
|
| 546 | + * @return void |
|
| 547 | + */ |
|
| 438 | 548 | public function setListMode(string $mode): void; |
| 439 | 549 | |
| 440 | 550 | /** |
@@ -463,12 +573,14 @@ discard block |
||
| 463 | 573 | |
| 464 | 574 | /** |
| 465 | 575 | * Returns the result link for an object. |
| 576 | + * @return string|null |
|
| 466 | 577 | */ |
| 467 | 578 | public function getSearchResultLink(object $object): ?string; |
| 468 | 579 | |
| 469 | 580 | /** |
| 470 | 581 | * Setting to true will enable mosaic button for the admin screen. |
| 471 | 582 | * Setting to false will hide mosaic button for the admin screen. |
| 583 | + * @return void |
|
| 472 | 584 | */ |
| 473 | 585 | public function showMosaicButton(bool $isShown): void; |
| 474 | 586 | |
@@ -494,6 +606,9 @@ discard block |
||
| 494 | 606 | */ |
| 495 | 607 | public function getRootCode(): string; |
| 496 | 608 | |
| 609 | + /** |
|
| 610 | + * @return void |
|
| 611 | + */ |
|
| 497 | 612 | public function setFilterPersister(?FilterPersisterInterface $filterPersister = null): void; |
| 498 | 613 | |
| 499 | 614 | /** |
@@ -506,14 +621,24 @@ discard block |
||
| 506 | 621 | */ |
| 507 | 622 | public function getBaseRouteName(): string; |
| 508 | 623 | |
| 624 | + /** |
|
| 625 | + * @param AbstractAdmin $childAdmin |
|
| 626 | + */ |
|
| 509 | 627 | public function getSideMenu(string $action, ?self $childAdmin = null): ItemInterface; |
| 510 | 628 | |
| 629 | + /** |
|
| 630 | + * @return void |
|
| 631 | + */ |
|
| 511 | 632 | public function addParentAssociationMapping(string $code, string $value): void; |
| 512 | 633 | |
| 634 | + /** |
|
| 635 | + * @return RouteGeneratorInterface|null |
|
| 636 | + */ |
|
| 513 | 637 | public function getRouteGenerator(): ?RouteGeneratorInterface; |
| 514 | 638 | |
| 515 | 639 | /** |
| 516 | 640 | * Returns the current child admin instance. |
| 641 | + * @return AdminInterface|null |
|
| 517 | 642 | */ |
| 518 | 643 | public function getCurrentChildAdmin(): ?self; |
| 519 | 644 | |
@@ -525,12 +650,14 @@ discard block |
||
| 525 | 650 | |
| 526 | 651 | /** |
| 527 | 652 | * @param string[] $keys |
| 653 | + * @return void |
|
| 528 | 654 | */ |
| 529 | 655 | public function reorderFormGroup(string $group, array $keys): void; |
| 530 | 656 | |
| 531 | 657 | /** |
| 532 | 658 | * This method is being called by the main admin class and the child class, |
| 533 | 659 | * the getFormBuilder is only call by the main admin class. |
| 660 | + * @return void |
|
| 534 | 661 | */ |
| 535 | 662 | public function defineFormBuilder(FormBuilderInterface $formBuilder): void; |
| 536 | 663 | } |
@@ -123,6 +123,9 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | private static $fieldGetters = []; |
| 125 | 125 | |
| 126 | + /** |
|
| 127 | + * @param string $fieldName |
|
| 128 | + */ |
|
| 126 | 129 | public function setFieldName(?string $fieldName): void |
| 127 | 130 | { |
| 128 | 131 | $this->fieldName = $fieldName; |
@@ -133,6 +136,9 @@ discard block |
||
| 133 | 136 | return $this->fieldName; |
| 134 | 137 | } |
| 135 | 138 | |
| 139 | + /** |
|
| 140 | + * @param string $name |
|
| 141 | + */ |
|
| 136 | 142 | public function setName(?string $name): void |
| 137 | 143 | { |
| 138 | 144 | $this->name = $name; |
@@ -262,6 +268,9 @@ discard block |
||
| 262 | 268 | return null !== $this->associationAdmin; |
| 263 | 269 | } |
| 264 | 270 | |
| 271 | + /** |
|
| 272 | + * @param string|null $fieldName |
|
| 273 | + */ |
|
| 265 | 274 | public function getFieldValue(?object $object, ?string $fieldName) |
| 266 | 275 | { |
| 267 | 276 | if ($this->isVirtual() || null === $object) { |
@@ -18,14 +18,24 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | interface FieldDescriptionInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function setFieldName(?string $fieldName): void; |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @return string|null |
|
| 28 | + */ |
|
| 23 | 29 | public function getFieldName(): ?string; |
| 24 | 30 | |
| 31 | + /** |
|
| 32 | + * @return void |
|
| 33 | + */ |
|
| 25 | 34 | public function setName(?string $name): void; |
| 26 | 35 | |
| 27 | 36 | /** |
| 28 | 37 | * Returns the name, the name can be used as a form label or table header. |
| 38 | + * @return string|null |
|
| 29 | 39 | */ |
| 30 | 40 | public function getName(): ?string; |
| 31 | 41 | |
@@ -42,6 +52,7 @@ discard block |
||
| 42 | 52 | * Define an option, an option is has a name and a value. |
| 43 | 53 | * |
| 44 | 54 | * @param mixed $value |
| 55 | + * @return void |
|
| 45 | 56 | */ |
| 46 | 57 | public function setOption(string $name, $value): void; |
| 47 | 58 | |
@@ -53,6 +64,7 @@ discard block |
||
| 53 | 64 | * Then the value are copied across to the related property value. |
| 54 | 65 | * |
| 55 | 66 | * @param array<string, mixed> $options |
| 67 | + * @return void |
|
| 56 | 68 | */ |
| 57 | 69 | public function setOptions(array $options): void; |
| 58 | 70 | |
@@ -65,21 +77,31 @@ discard block |
||
| 65 | 77 | |
| 66 | 78 | /** |
| 67 | 79 | * Sets the template used to render the field. |
| 80 | + * @param string $template |
|
| 81 | + * @return void |
|
| 68 | 82 | */ |
| 69 | 83 | public function setTemplate(?string $template): void; |
| 70 | 84 | |
| 85 | + /** |
|
| 86 | + * @return string|null |
|
| 87 | + */ |
|
| 71 | 88 | public function getTemplate(): ?string; |
| 72 | 89 | |
| 73 | 90 | /** |
| 74 | 91 | * Sets the field type. The type is a mandatory field as it's used to select the correct template |
| 75 | 92 | * or the logic associated to the current FieldDescription object. |
| 93 | + * @return void |
|
| 76 | 94 | */ |
| 77 | 95 | public function setType(?string $type): void; |
| 78 | 96 | |
| 97 | + /** |
|
| 98 | + * @return string|null |
|
| 99 | + */ |
|
| 79 | 100 | public function getType(): ?string; |
| 80 | 101 | |
| 81 | 102 | /** |
| 82 | 103 | * set the parent Admin (only used in nested admin). |
| 104 | + * @return void |
|
| 83 | 105 | */ |
| 84 | 106 | public function setParent(AdminInterface $parent): void; |
| 85 | 107 | |
@@ -108,6 +130,7 @@ discard block |
||
| 108 | 130 | |
| 109 | 131 | /** |
| 110 | 132 | * Returns the related Target object model. |
| 133 | + * @return string |
|
| 111 | 134 | */ |
| 112 | 135 | public function getTargetModel(): ?string; |
| 113 | 136 | |
@@ -141,6 +164,7 @@ discard block |
||
| 141 | 164 | |
| 142 | 165 | /** |
| 143 | 166 | * Set the association admin instance (only used if the field is linked to an Admin). |
| 167 | + * @return void |
|
| 144 | 168 | */ |
| 145 | 169 | public function setAssociationAdmin(AdminInterface $associationAdmin): void; |
| 146 | 170 | |
@@ -165,6 +189,9 @@ discard block |
||
| 165 | 189 | */ |
| 166 | 190 | public function getValue(object $object); |
| 167 | 191 | |
| 192 | + /** |
|
| 193 | + * @return void |
|
| 194 | + */ |
|
| 168 | 195 | public function setAdmin(AdminInterface $admin): void; |
| 169 | 196 | |
| 170 | 197 | /** |
@@ -180,6 +207,7 @@ discard block |
||
| 180 | 207 | * @param array<string, mixed> $options |
| 181 | 208 | * |
| 182 | 209 | * @throws \RuntimeException |
| 210 | + * @return void |
|
| 183 | 211 | */ |
| 184 | 212 | public function mergeOption(string $name, array $options = []): void; |
| 185 | 213 | |
@@ -187,6 +215,7 @@ discard block |
||
| 187 | 215 | * Merge options values. |
| 188 | 216 | * |
| 189 | 217 | * @param array<string, mixed> $options |
| 218 | + * @return void |
|
| 190 | 219 | */ |
| 191 | 220 | public function mergeOptions(array $options = []): void; |
| 192 | 221 | |
@@ -194,6 +223,7 @@ discard block |
||
| 194 | 223 | * set the original mapping type (only used if the field is linked to an entity). |
| 195 | 224 | * |
| 196 | 225 | * @param int|string $mappingType |
| 226 | + * @return void |
|
| 197 | 227 | */ |
| 198 | 228 | public function setMappingType($mappingType): void; |
| 199 | 229 | |
@@ -67,6 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | 69 | * @param array<string, mixed> $options |
| 70 | + * @param PropertyAccessorInterface $propertyAccessor |
|
| 70 | 71 | */ |
| 71 | 72 | public function __construct( |
| 72 | 73 | ContainerInterface $container, |