@@ -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,8 @@ 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 | + * @param AdminInterface $admin |
|
| 323 | 324 | * |
| 324 | 325 | * @return string string representation of the id that is safe to use in a url |
| 325 | 326 | */ |
@@ -341,7 +342,7 @@ discard block |
||
| 341 | 342 | } |
| 342 | 343 | |
| 343 | 344 | /** |
| 344 | - * @return string|bool |
|
| 345 | + * @return string|false |
|
| 345 | 346 | */ |
| 346 | 347 | public function getXEditableType($type) |
| 347 | 348 | { |
@@ -20,6 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * set the field name. |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function setFieldName(?string $fieldName): void; |
| 25 | 26 | |
@@ -32,6 +33,7 @@ discard block |
||
| 32 | 33 | |
| 33 | 34 | /** |
| 34 | 35 | * Set the name. |
| 36 | + * @return void |
|
| 35 | 37 | */ |
| 36 | 38 | public function setName(?string $name): void; |
| 37 | 39 | |
@@ -55,6 +57,7 @@ discard block |
||
| 55 | 57 | * Define an option, an option is has a name and a value. |
| 56 | 58 | * |
| 57 | 59 | * @param mixed $value |
| 60 | + * @return void |
|
| 58 | 61 | */ |
| 59 | 62 | public function setOption(string $name, $value): void; |
| 60 | 63 | |
@@ -66,6 +69,7 @@ discard block |
||
| 66 | 69 | * Then the value are copied across to the related property value. |
| 67 | 70 | * |
| 68 | 71 | * @param array<string, mixed> $options |
| 72 | + * @return void |
|
| 69 | 73 | */ |
| 70 | 74 | public function setOptions(array $options): void; |
| 71 | 75 | |
@@ -78,6 +82,7 @@ discard block |
||
| 78 | 82 | |
| 79 | 83 | /** |
| 80 | 84 | * Sets the template used to render the field. |
| 85 | + * @return void |
|
| 81 | 86 | */ |
| 82 | 87 | public function setTemplate(string $template): void; |
| 83 | 88 | |
@@ -91,6 +96,7 @@ discard block |
||
| 91 | 96 | /** |
| 92 | 97 | * Sets the field type. The type is a mandatory field as it's used to select the correct template |
| 93 | 98 | * or the logic associated to the current FieldDescription object. |
| 99 | + * @return void |
|
| 94 | 100 | */ |
| 95 | 101 | public function setType(?string $type): void; |
| 96 | 102 | |
@@ -103,11 +109,13 @@ discard block |
||
| 103 | 109 | |
| 104 | 110 | /** |
| 105 | 111 | * set the parent Admin (only used in nested admin). |
| 112 | + * @return void |
|
| 106 | 113 | */ |
| 107 | 114 | public function setParent(AdminInterface $parent); |
| 108 | 115 | |
| 109 | 116 | /** |
| 110 | 117 | * Returns the parent Admin (only used in nested admin). |
| 118 | + * @return AdminInterface|null |
|
| 111 | 119 | */ |
| 112 | 120 | public function getParent(): ?AdminInterface; |
| 113 | 121 | |
@@ -123,6 +131,7 @@ discard block |
||
| 123 | 131 | |
| 124 | 132 | /** |
| 125 | 133 | * Returns the related Target Entity. |
| 134 | + * @return string |
|
| 126 | 135 | */ |
| 127 | 136 | public function getTargetEntity(): ?string; |
| 128 | 137 | |
@@ -154,11 +163,13 @@ discard block |
||
| 154 | 163 | * set the association admin instance (only used if the field is linked to an Admin). |
| 155 | 164 | * |
| 156 | 165 | * @param AdminInterface $associationAdmin the associated admin |
| 166 | + * @return void |
|
| 157 | 167 | */ |
| 158 | 168 | public function setAssociationAdmin(AdminInterface $associationAdmin); |
| 159 | 169 | |
| 160 | 170 | /** |
| 161 | 171 | * Returns the associated Admin instance (only used if the field is linked to an Admin). |
| 172 | + * @return AdminInterface |
|
| 162 | 173 | */ |
| 163 | 174 | public function getAssociationAdmin(): ?AdminInterface; |
| 164 | 175 | |
@@ -176,6 +187,7 @@ discard block |
||
| 176 | 187 | |
| 177 | 188 | /** |
| 178 | 189 | * set the admin class linked to this FieldDescription. |
| 190 | + * @return void |
|
| 179 | 191 | */ |
| 180 | 192 | public function setAdmin(AdminInterface $admin); |
| 181 | 193 | |
@@ -188,11 +200,13 @@ discard block |
||
| 188 | 200 | * merge option values related to the provided option name. |
| 189 | 201 | * |
| 190 | 202 | * @throws \RuntimeException |
| 203 | + * @return void |
|
| 191 | 204 | */ |
| 192 | 205 | public function mergeOption(string $name, array $options = []): void; |
| 193 | 206 | |
| 194 | 207 | /** |
| 195 | 208 | * merge options values. |
| 209 | + * @return void |
|
| 196 | 210 | */ |
| 197 | 211 | public function mergeOptions(array $options = []): void; |
| 198 | 212 | |
@@ -200,6 +214,7 @@ discard block |
||
| 200 | 214 | * set the original mapping type (only used if the field is linked to an entity). |
| 201 | 215 | * |
| 202 | 216 | * @param string|int $mappingType |
| 217 | + * @return void |
|
| 203 | 218 | */ |
| 204 | 219 | public function setMappingType($mappingType); |
| 205 | 220 | |
@@ -59,6 +59,9 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | private $templateRegistry; |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @param ContainerInterface $container |
|
| 64 | + */ |
|
| 62 | 65 | public function setContainer(?ContainerInterface $container = null): void |
| 63 | 66 | { |
| 64 | 67 | $this->container = $container; |
@@ -71,6 +74,7 @@ discard block |
||
| 71 | 74 | * |
| 72 | 75 | * @param string $view The view name |
| 73 | 76 | * @param array<string, mixed> $parameters An array of parameters to pass to the view |
| 77 | + * @param Response $response |
|
| 74 | 78 | * |
| 75 | 79 | * @return Response A Response instance |
| 76 | 80 | */ |
@@ -713,8 +717,8 @@ discard block |
||
| 713 | 717 | /** |
| 714 | 718 | * Compare history revisions of object. |
| 715 | 719 | * |
| 716 | - * @param int|string|null $baseRevision |
|
| 717 | - * @param int|string|null $compareRevision |
|
| 720 | + * @param null|integer $baseRevision |
|
| 721 | + * @param null|integer $compareRevision |
|
| 718 | 722 | * |
| 719 | 723 | * @throws AccessDeniedException If access is not granted |
| 720 | 724 | * @throws NotFoundHttpException If the object or revision does not exist or the audit reader is not available |
@@ -1410,6 +1414,7 @@ discard block |
||
| 1410 | 1414 | |
| 1411 | 1415 | /** |
| 1412 | 1416 | * Sets the admin form theme to form view. Used for compatibility between Symfony versions. |
| 1417 | + * @param string[] $theme |
|
| 1413 | 1418 | */ |
| 1414 | 1419 | private function setFormTheme(FormView $formView, ?array $theme = null): void |
| 1415 | 1420 | { |
@@ -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,14 +123,19 @@ 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 | |
| 89 | 130 | /** |
| 90 | 131 | * Sets a specific template. |
| 132 | + * @return void |
|
| 91 | 133 | */ |
| 92 | 134 | public function setTemplate(string $name, string $template): void; |
| 93 | 135 | |
| 136 | + /** |
|
| 137 | + * @return ModelManagerInterface |
|
| 138 | + */ |
|
| 94 | 139 | public function getModelManager(): ?ModelManagerInterface; |
| 95 | 140 | |
| 96 | 141 | /** |
@@ -110,6 +155,7 @@ discard block |
||
| 110 | 155 | |
| 111 | 156 | /** |
| 112 | 157 | * Returns a form depend on the given $object. |
| 158 | + * @return \Symfony\Component\Form\Form|null |
|
| 113 | 159 | */ |
| 114 | 160 | public function getForm(): ?FormInterface; |
| 115 | 161 | |
@@ -140,6 +186,9 @@ discard block |
||
| 140 | 186 | */ |
| 141 | 187 | public function getSecurityInformation(): array; |
| 142 | 188 | |
| 189 | + /** |
|
| 190 | + * @return void |
|
| 191 | + */ |
|
| 143 | 192 | public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription): void; |
| 144 | 193 | |
| 145 | 194 | /** |
@@ -179,8 +228,14 @@ discard block |
||
| 179 | 228 | */ |
| 180 | 229 | public function hasRoute(string $name): bool; |
| 181 | 230 | |
| 231 | + /** |
|
| 232 | + * @return void |
|
| 233 | + */ |
|
| 182 | 234 | public function setSecurityHandler(SecurityHandlerInterface $securityHandler): void; |
| 183 | 235 | |
| 236 | + /** |
|
| 237 | + * @return SecurityHandlerInterface |
|
| 238 | + */ |
|
| 184 | 239 | public function getSecurityHandler(): ?SecurityHandlerInterface; |
| 185 | 240 | |
| 186 | 241 | /** |
@@ -199,15 +254,28 @@ discard block |
||
| 199 | 254 | * Shorthand method for templating. |
| 200 | 255 | * |
| 201 | 256 | * @param object $entity |
| 257 | + * @return string |
|
| 202 | 258 | */ |
| 203 | 259 | public function id($entity): ?string; |
| 204 | 260 | |
| 261 | + /** |
|
| 262 | + * @return void |
|
| 263 | + */ |
|
| 205 | 264 | public function setValidator(ValidatorInterface $validator): void; |
| 206 | 265 | |
| 266 | + /** |
|
| 267 | + * @return ValidatorInterface |
|
| 268 | + */ |
|
| 207 | 269 | public function getValidator(): ?ValidatorInterface; |
| 208 | 270 | |
| 271 | + /** |
|
| 272 | + * @return FieldDescriptionCollection|null |
|
| 273 | + */ |
|
| 209 | 274 | public function getShow(): ?FieldDescriptionCollection; |
| 210 | 275 | |
| 276 | + /** |
|
| 277 | + * @return void |
|
| 278 | + */ |
|
| 211 | 279 | public function setFormTheme(array $formTheme): void; |
| 212 | 280 | |
| 213 | 281 | /** |
@@ -215,6 +283,9 @@ discard block |
||
| 215 | 283 | */ |
| 216 | 284 | public function getFormTheme(): array; |
| 217 | 285 | |
| 286 | + /** |
|
| 287 | + * @return void |
|
| 288 | + */ |
|
| 218 | 289 | public function setFilterTheme(array $filterTheme): void; |
| 219 | 290 | |
| 220 | 291 | /** |
@@ -222,6 +293,9 @@ discard block |
||
| 222 | 293 | */ |
| 223 | 294 | public function getFilterTheme(): array; |
| 224 | 295 | |
| 296 | + /** |
|
| 297 | + * @return void |
|
| 298 | + */ |
|
| 225 | 299 | public function addExtension(AdminExtensionInterface $extension): void; |
| 226 | 300 | |
| 227 | 301 | /** |
@@ -231,8 +305,14 @@ discard block |
||
| 231 | 305 | */ |
| 232 | 306 | public function getExtensions(): array; |
| 233 | 307 | |
| 308 | + /** |
|
| 309 | + * @return void |
|
| 310 | + */ |
|
| 234 | 311 | public function setRouteBuilder(RouteBuilderInterface $routeBuilder): void; |
| 235 | 312 | |
| 313 | + /** |
|
| 314 | + * @return RouteBuilderInterface |
|
| 315 | + */ |
|
| 236 | 316 | public function getRouteBuilder(): ?RouteBuilderInterface; |
| 237 | 317 | |
| 238 | 318 | /** |
@@ -240,8 +320,14 @@ discard block |
||
| 240 | 320 | */ |
| 241 | 321 | public function toString($object): string; |
| 242 | 322 | |
| 323 | + /** |
|
| 324 | + * @return void |
|
| 325 | + */ |
|
| 243 | 326 | public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy): void; |
| 244 | 327 | |
| 328 | + /** |
|
| 329 | + * @return LabelTranslatorStrategyInterface |
|
| 330 | + */ |
|
| 245 | 331 | public function getLabelTranslatorStrategy(): ?LabelTranslatorStrategyInterface; |
| 246 | 332 | |
| 247 | 333 | /** |
@@ -253,6 +339,9 @@ discard block |
||
| 253 | 339 | |
| 254 | 340 | public function getNewInstance(): object; |
| 255 | 341 | |
| 342 | + /** |
|
| 343 | + * @return void |
|
| 344 | + */ |
|
| 256 | 345 | public function setUniqid(string $uniqId): void; |
| 257 | 346 | |
| 258 | 347 | /** |
@@ -272,6 +361,9 @@ discard block |
||
| 272 | 361 | */ |
| 273 | 362 | public function getObject($id): ?object; |
| 274 | 363 | |
| 364 | + /** |
|
| 365 | + * @return void |
|
| 366 | + */ |
|
| 275 | 367 | public function setSubject(?object $subject): void; |
| 276 | 368 | |
| 277 | 369 | /** |
@@ -313,6 +405,7 @@ discard block |
||
| 313 | 405 | |
| 314 | 406 | /** |
| 315 | 407 | * Call before the batch action, allow you to alter the query and the idx. |
| 408 | + * @return void |
|
| 316 | 409 | */ |
| 317 | 410 | public function preBatchAction(string $actionName, ProxyQueryInterface $query, array &$idx, bool $allElements = false): void; |
| 318 | 411 | |
@@ -335,6 +428,7 @@ discard block |
||
| 335 | 428 | * |
| 336 | 429 | * @deprecated this feature cannot be stable, use a custom validator, |
| 337 | 430 | * the feature will be removed with Symfony 2.2 |
| 431 | + * @return void |
|
| 338 | 432 | */ |
| 339 | 433 | public function validate(ErrorElement $errorElement, $object): void; |
| 340 | 434 | |
@@ -342,6 +436,7 @@ discard block |
||
| 342 | 436 | |
| 343 | 437 | /** |
| 344 | 438 | * Add object security, fe. make the current user owner of the object. |
| 439 | + * @return void |
|
| 345 | 440 | */ |
| 346 | 441 | public function createObjectSecurity(object $object): void; |
| 347 | 442 | |
@@ -350,6 +445,9 @@ discard block |
||
| 350 | 445 | */ |
| 351 | 446 | public function getParent(): ?self; |
| 352 | 447 | |
| 448 | + /** |
|
| 449 | + * @return void |
|
| 450 | + */ |
|
| 353 | 451 | public function setParent(self $admin): void; |
| 354 | 452 | |
| 355 | 453 | /** |
@@ -361,6 +459,7 @@ discard block |
||
| 361 | 459 | * Set the translation domain. |
| 362 | 460 | * |
| 363 | 461 | * @param string $translationDomain the translation domain |
| 462 | + * @return void |
|
| 364 | 463 | */ |
| 365 | 464 | public function setTranslationDomain(string $translationDomain): void; |
| 366 | 465 | |
@@ -382,6 +481,7 @@ discard block |
||
| 382 | 481 | |
| 383 | 482 | /** |
| 384 | 483 | * Set the form groups. |
| 484 | + * @return void |
|
| 385 | 485 | */ |
| 386 | 486 | public function setFormGroups(array $formGroups): void; |
| 387 | 487 | |
@@ -390,6 +490,9 @@ discard block |
||
| 390 | 490 | */ |
| 391 | 491 | public function getFormTabs(); |
| 392 | 492 | |
| 493 | + /** |
|
| 494 | + * @return void |
|
| 495 | + */ |
|
| 393 | 496 | public function setFormTabs(array $formTabs): void; |
| 394 | 497 | |
| 395 | 498 | /** |
@@ -397,10 +500,14 @@ discard block |
||
| 397 | 500 | */ |
| 398 | 501 | public function getShowTabs(); |
| 399 | 502 | |
| 503 | + /** |
|
| 504 | + * @return void |
|
| 505 | + */ |
|
| 400 | 506 | public function setShowTabs(array $showTabs): void; |
| 401 | 507 | |
| 402 | 508 | /** |
| 403 | 509 | * Remove a form group field. |
| 510 | + * @return void |
|
| 404 | 511 | */ |
| 405 | 512 | public function removeFieldFromFormGroup(string $key): void; |
| 406 | 513 | |
@@ -415,21 +522,25 @@ discard block |
||
| 415 | 522 | |
| 416 | 523 | /** |
| 417 | 524 | * Set the show groups. |
| 525 | + * @return void |
|
| 418 | 526 | */ |
| 419 | 527 | public function setShowGroups(array $showGroups): void; |
| 420 | 528 | |
| 421 | 529 | /** |
| 422 | 530 | * Reorder items in showGroup. |
| 531 | + * @return void |
|
| 423 | 532 | */ |
| 424 | 533 | public function reorderShowGroup(string $group, array $keys): void; |
| 425 | 534 | |
| 426 | 535 | /** |
| 427 | 536 | * add a FieldDescription. |
| 537 | + * @return void |
|
| 428 | 538 | */ |
| 429 | 539 | public function addFormFieldDescription(string $name, FieldDescriptionInterface $fieldDescription): void; |
| 430 | 540 | |
| 431 | 541 | /** |
| 432 | 542 | * Remove a FieldDescription. |
| 543 | + * @return void |
|
| 433 | 544 | */ |
| 434 | 545 | public function removeFormFieldDescription(string $name): void; |
| 435 | 546 | |
@@ -447,11 +558,13 @@ discard block |
||
| 447 | 558 | * Adds a new class to a list of supported sub classes. |
| 448 | 559 | * |
| 449 | 560 | * @param $subClass |
| 561 | + * @return void |
|
| 450 | 562 | */ |
| 451 | 563 | public function addSubClass($subClass): void; |
| 452 | 564 | |
| 453 | 565 | /** |
| 454 | 566 | * Sets the list of supported sub classes. |
| 567 | + * @return void |
|
| 455 | 568 | */ |
| 456 | 569 | public function setSubClasses(array $subClasses): void; |
| 457 | 570 | |
@@ -490,6 +603,7 @@ discard block |
||
| 490 | 603 | |
| 491 | 604 | /** |
| 492 | 605 | * Returns Admin`s label. |
| 606 | + * @return string |
|
| 493 | 607 | */ |
| 494 | 608 | public function getLabel(): ?string; |
| 495 | 609 | |
@@ -504,6 +618,7 @@ discard block |
||
| 504 | 618 | |
| 505 | 619 | /** |
| 506 | 620 | * Set the current child status. |
| 621 | + * @return void |
|
| 507 | 622 | */ |
| 508 | 623 | public function setCurrentChild(bool $currentChild): void; |
| 509 | 624 | |
@@ -529,6 +644,9 @@ discard block |
||
| 529 | 644 | */ |
| 530 | 645 | public function getListModes(): array; |
| 531 | 646 | |
| 647 | + /** |
|
| 648 | + * @return void |
|
| 649 | + */ |
|
| 532 | 650 | public function setListMode(string $mode): void; |
| 533 | 651 | |
| 534 | 652 | /** |
@@ -553,12 +671,14 @@ discard block |
||
| 553 | 671 | |
| 554 | 672 | /** |
| 555 | 673 | * Returns the result link for an object. |
| 674 | + * @return string|null |
|
| 556 | 675 | */ |
| 557 | 676 | public function getSearchResultLink(object $object): ?string; |
| 558 | 677 | |
| 559 | 678 | /** |
| 560 | 679 | * Setting to true will enable mosaic button for the admin screen. |
| 561 | 680 | * Setting to false will hide mosaic button for the admin screen. |
| 681 | + * @return void |
|
| 562 | 682 | */ |
| 563 | 683 | public function showMosaicButton(bool $isShown): void; |
| 564 | 684 | |