| Total Complexity | 63 |
| Total Lines | 541 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
Complex classes like FormDefinition often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use FormDefinition, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 224 | class FormDefinition extends AbstractCompositeRenderable implements VariableRenderableInterface |
||
| 225 | { |
||
| 226 | /** |
||
| 227 | * The finishers for this form |
||
| 228 | * |
||
| 229 | * @var \TYPO3\CMS\Form\Domain\Finishers\FinisherInterface[] |
||
| 230 | */ |
||
| 231 | protected $finishers = []; |
||
| 232 | |||
| 233 | /** |
||
| 234 | * Property Mapping Rules, indexed by element identifier |
||
| 235 | * |
||
| 236 | * @var \TYPO3\CMS\Form\Mvc\ProcessingRule[] |
||
| 237 | */ |
||
| 238 | protected $processingRules = []; |
||
| 239 | |||
| 240 | /** |
||
| 241 | * Contains all elements of the form, indexed by identifier. |
||
| 242 | * Is used as internal cache as we need this really often. |
||
| 243 | * |
||
| 244 | * @var \TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface[] |
||
| 245 | */ |
||
| 246 | protected $elementsByIdentifier = []; |
||
| 247 | |||
| 248 | /** |
||
| 249 | * Form element default values in the format ['elementIdentifier' => 'default value'] |
||
| 250 | * |
||
| 251 | * @var array |
||
| 252 | */ |
||
| 253 | protected $elementDefaultValues = []; |
||
| 254 | |||
| 255 | /** |
||
| 256 | * Renderer class name to be used. |
||
| 257 | * |
||
| 258 | * @var string |
||
| 259 | */ |
||
| 260 | protected $rendererClassName = ''; |
||
| 261 | |||
| 262 | /** |
||
| 263 | * @var array |
||
| 264 | */ |
||
| 265 | protected $typeDefinitions; |
||
| 266 | |||
| 267 | /** |
||
| 268 | * @var array |
||
| 269 | */ |
||
| 270 | protected $validatorsDefinition; |
||
| 271 | |||
| 272 | /** |
||
| 273 | * @var array |
||
| 274 | */ |
||
| 275 | protected $finishersDefinition; |
||
| 276 | |||
| 277 | /** |
||
| 278 | * @var array |
||
| 279 | */ |
||
| 280 | protected $conditionContextDefinition; |
||
| 281 | |||
| 282 | /** |
||
| 283 | * The persistence identifier of the form |
||
| 284 | * |
||
| 285 | * @var string |
||
| 286 | */ |
||
| 287 | protected $persistenceIdentifier; |
||
| 288 | |||
| 289 | /** |
||
| 290 | * Constructor. Creates a new FormDefinition with the given identifier. |
||
| 291 | * |
||
| 292 | * @param string $identifier The Form Definition's identifier, must be a non-empty string. |
||
| 293 | * @param array $prototypeConfiguration overrides form defaults of this definition |
||
| 294 | * @param string $type element type of this form |
||
| 295 | * @param string $persistenceIdentifier the persistence identifier of the form |
||
| 296 | * @throws IdentifierNotValidException if the identifier was not valid |
||
| 297 | */ |
||
| 298 | public function __construct( |
||
| 299 | string $identifier, |
||
| 300 | array $prototypeConfiguration = [], |
||
| 301 | string $type = 'Form', |
||
| 302 | string $persistenceIdentifier = null |
||
| 303 | ) { |
||
| 304 | $this->typeDefinitions = $prototypeConfiguration['formElementsDefinition'] ?? []; |
||
| 305 | $this->validatorsDefinition = $prototypeConfiguration['validatorsDefinition'] ?? []; |
||
| 306 | $this->finishersDefinition = $prototypeConfiguration['finishersDefinition'] ?? []; |
||
| 307 | $this->conditionContextDefinition = $prototypeConfiguration['conditionContextDefinition'] ?? []; |
||
| 308 | |||
| 309 | if (!is_string($identifier) || strlen($identifier) === 0) { |
||
|
|
|||
| 310 | throw new IdentifierNotValidException('The given identifier was not a string or the string was empty.', 1477082503); |
||
| 311 | } |
||
| 312 | |||
| 313 | $this->identifier = $identifier; |
||
| 314 | $this->type = $type; |
||
| 315 | $this->persistenceIdentifier = (string)$persistenceIdentifier; |
||
| 316 | |||
| 317 | if ($prototypeConfiguration !== []) { |
||
| 318 | $this->initializeFromFormDefaults(); |
||
| 319 | } |
||
| 320 | } |
||
| 321 | |||
| 322 | /** |
||
| 323 | * Initialize the form defaults of the current type |
||
| 324 | * |
||
| 325 | * @throws TypeDefinitionNotFoundException |
||
| 326 | * @internal |
||
| 327 | */ |
||
| 328 | protected function initializeFromFormDefaults() |
||
| 329 | { |
||
| 330 | if (!isset($this->typeDefinitions[$this->type])) { |
||
| 331 | throw new TypeDefinitionNotFoundException(sprintf('Type "%s" not found. Probably some configuration is missing.', $this->type), 1474905835); |
||
| 332 | } |
||
| 333 | $typeDefinition = $this->typeDefinitions[$this->type]; |
||
| 334 | $this->setOptions($typeDefinition); |
||
| 335 | } |
||
| 336 | |||
| 337 | /** |
||
| 338 | * Set multiple properties of this object at once. |
||
| 339 | * Every property which has a corresponding set* method can be set using |
||
| 340 | * the passed $options array. |
||
| 341 | * |
||
| 342 | * @param array $options |
||
| 343 | * @param bool $resetFinishers |
||
| 344 | * @internal |
||
| 345 | */ |
||
| 346 | public function setOptions(array $options, bool $resetFinishers = false) |
||
| 347 | { |
||
| 348 | if (isset($options['rendererClassName'])) { |
||
| 349 | $this->setRendererClassName($options['rendererClassName']); |
||
| 350 | } |
||
| 351 | if (isset($options['label'])) { |
||
| 352 | $this->setLabel($options['label']); |
||
| 353 | } |
||
| 354 | if (isset($options['renderingOptions'])) { |
||
| 355 | foreach ($options['renderingOptions'] as $key => $value) { |
||
| 356 | $this->setRenderingOption($key, $value); |
||
| 357 | } |
||
| 358 | } |
||
| 359 | if (isset($options['finishers'])) { |
||
| 360 | if ($resetFinishers) { |
||
| 361 | $this->finishers = []; |
||
| 362 | } |
||
| 363 | foreach ($options['finishers'] as $finisherConfiguration) { |
||
| 364 | $this->createFinisher($finisherConfiguration['identifier'], $finisherConfiguration['options'] ?? []); |
||
| 365 | } |
||
| 366 | } |
||
| 367 | |||
| 368 | if (isset($options['variants'])) { |
||
| 369 | foreach ($options['variants'] as $variantConfiguration) { |
||
| 370 | $this->createVariant($variantConfiguration); |
||
| 371 | } |
||
| 372 | } |
||
| 373 | |||
| 374 | ArrayUtility::assertAllArrayKeysAreValid( |
||
| 375 | $options, |
||
| 376 | ['rendererClassName', 'renderingOptions', 'finishers', 'formEditor', 'label', 'variants'] |
||
| 377 | ); |
||
| 378 | } |
||
| 379 | |||
| 380 | /** |
||
| 381 | * Create a page with the given $identifier and attach this page to the form. |
||
| 382 | * |
||
| 383 | * - Create Page object based on the given $typeName |
||
| 384 | * - set defaults inside the Page object |
||
| 385 | * - attach Page object to this form |
||
| 386 | * - return the newly created Page object |
||
| 387 | * |
||
| 388 | * @param string $identifier Identifier of the new page |
||
| 389 | * @param string $typeName Type of the new page |
||
| 390 | * @return Page the newly created page |
||
| 391 | * @throws TypeDefinitionNotFoundException |
||
| 392 | */ |
||
| 393 | public function createPage(string $identifier, string $typeName = 'Page'): Page |
||
| 394 | { |
||
| 395 | if (!isset($this->typeDefinitions[$typeName])) { |
||
| 396 | throw new TypeDefinitionNotFoundException(sprintf('Type "%s" not found. Probably some configuration is missing.', $typeName), 1474905953); |
||
| 397 | } |
||
| 398 | |||
| 399 | $typeDefinition = $this->typeDefinitions[$typeName]; |
||
| 400 | |||
| 401 | if (!isset($typeDefinition['implementationClassName'])) { |
||
| 402 | throw new TypeDefinitionNotFoundException(sprintf('The "implementationClassName" was not set in type definition "%s".', $typeName), 1477083126); |
||
| 403 | } |
||
| 404 | $implementationClassName = $typeDefinition['implementationClassName']; |
||
| 405 | |||
| 406 | $classSchema = GeneralUtility::makeInstance(ReflectionService::class)->getClassSchema($implementationClassName); |
||
| 407 | if ($classSchema->hasInjectMethods() || $classSchema->hasInjectProperties() || $classSchema->hasMethod('initializeObject')) { |
||
| 408 | // @deprecated since v11, will be removed in v12 - Fallback for Page implementations that have |
||
| 409 | // inject* or initializeObject methods, since Page prototype needs manual constructor arguments |
||
| 410 | // which can't be mixed with injection in symfony DI. Deprecation is logged by ObjectManager->get(). |
||
| 411 | // Drop everything except the makeInstance call below in v12. |
||
| 412 | $objectManager = GeneralUtility::makeInstance(ObjectManager::class); |
||
| 413 | /** @var Page $page */ |
||
| 414 | $page = $objectManager->get($implementationClassName, $identifier, $typeName); |
||
| 415 | } else { |
||
| 416 | /** @var Page $page */ |
||
| 417 | $page = GeneralUtility::makeInstance($implementationClassName, $identifier, $typeName); |
||
| 418 | } |
||
| 419 | |||
| 420 | if (isset($typeDefinition['label'])) { |
||
| 421 | $page->setLabel($typeDefinition['label']); |
||
| 422 | } |
||
| 423 | |||
| 424 | if (isset($typeDefinition['renderingOptions'])) { |
||
| 425 | foreach ($typeDefinition['renderingOptions'] as $key => $value) { |
||
| 426 | $page->setRenderingOption($key, $value); |
||
| 427 | } |
||
| 428 | } |
||
| 429 | |||
| 430 | ArrayUtility::assertAllArrayKeysAreValid( |
||
| 431 | $typeDefinition, |
||
| 432 | ['implementationClassName', 'label', 'renderingOptions', 'formEditor'] |
||
| 433 | ); |
||
| 434 | |||
| 435 | $this->addPage($page); |
||
| 436 | return $page; |
||
| 437 | } |
||
| 438 | |||
| 439 | /** |
||
| 440 | * Add a new page at the end of the form. |
||
| 441 | * |
||
| 442 | * Instead of this method, you should often use {@link createPage} instead. |
||
| 443 | * |
||
| 444 | * @param Page $page |
||
| 445 | * @throws FormDefinitionConsistencyException if Page is already added to a FormDefinition |
||
| 446 | * @see createPage |
||
| 447 | */ |
||
| 448 | public function addPage(Page $page) |
||
| 449 | { |
||
| 450 | $this->addRenderable($page); |
||
| 451 | } |
||
| 452 | |||
| 453 | /** |
||
| 454 | * Get the Form's pages |
||
| 455 | * |
||
| 456 | * @return array|Page[] The Form's pages in the correct order |
||
| 457 | */ |
||
| 458 | public function getPages(): array |
||
| 459 | { |
||
| 460 | return $this->renderables; |
||
| 461 | } |
||
| 462 | |||
| 463 | /** |
||
| 464 | * Check whether a page with the given $index exists |
||
| 465 | * |
||
| 466 | * @param int $index |
||
| 467 | * @return bool TRUE if a page with the given $index exists, otherwise FALSE |
||
| 468 | */ |
||
| 469 | public function hasPageWithIndex(int $index): bool |
||
| 472 | } |
||
| 473 | |||
| 474 | /** |
||
| 475 | * Get the page with the passed index. The first page has index zero. |
||
| 476 | * |
||
| 477 | * If page at $index does not exist, an exception is thrown. @see hasPageWithIndex() |
||
| 478 | * |
||
| 479 | * @param int $index |
||
| 480 | * @return Page the page, or NULL if none found. |
||
| 481 | * @throws FormException if the specified index does not exist |
||
| 482 | */ |
||
| 483 | public function getPageByIndex(int $index) |
||
| 489 | } |
||
| 490 | |||
| 491 | /** |
||
| 492 | * Adds the specified finisher to this form |
||
| 493 | * |
||
| 494 | * @param FinisherInterface $finisher |
||
| 495 | */ |
||
| 496 | public function addFinisher(FinisherInterface $finisher) |
||
| 499 | } |
||
| 500 | |||
| 501 | /** |
||
| 502 | * @param string $finisherIdentifier identifier of the finisher as registered in the current form (for example: "Redirect") |
||
| 503 | * @param array $options options for this finisher in the format ['option1' => 'value1', 'option2' => 'value2', ...] |
||
| 504 | * @return FinisherInterface |
||
| 505 | * @throws FinisherPresetNotFoundException |
||
| 506 | */ |
||
| 507 | public function createFinisher(string $finisherIdentifier, array $options = []): FinisherInterface |
||
| 508 | { |
||
| 509 | if (isset($this->finishersDefinition[$finisherIdentifier]) && is_array($this->finishersDefinition[$finisherIdentifier]) && isset($this->finishersDefinition[$finisherIdentifier]['implementationClassName'])) { |
||
| 510 | $implementationClassName = $this->finishersDefinition[$finisherIdentifier]['implementationClassName']; |
||
| 511 | $defaultOptions = $this->finishersDefinition[$finisherIdentifier]['options'] ?? []; |
||
| 512 | ArrayUtility::mergeRecursiveWithOverrule($defaultOptions, $options); |
||
| 513 | |||
| 514 | $classSchema = GeneralUtility::makeInstance(ReflectionService::class)->getClassSchema($implementationClassName); |
||
| 515 | if (!$classSchema->hasMethod('setFinisherIdentifier') |
||
| 516 | || ($classSchema->hasMethod('__construct') |
||
| 517 | && count($classSchema->getMethod('__construct')->getParameters()) >= 1 |
||
| 518 | && (string)$classSchema->getMethod('__construct')->getFirstParameter()->getType() === 'string') |
||
| 519 | ) { |
||
| 520 | // @deprecated since v11, will be removed in v12 - Fallback for Finishers that do not |
||
| 521 | // extend AbstractFinisher and have no setFinisherIdentifier() method or still have a |
||
| 522 | // constructor argument to set the finisher name: Mixing manual constructor arguments |
||
| 523 | // with injection is not allowed by symfony DI, so we dropped the constructor argument |
||
| 524 | // for v11 to keep the injection. |
||
| 525 | // The above if detects "old" finisher and falls back to ObjectManager, which will log |
||
| 526 | // a deprecation. |
||
| 527 | // Drop the if with this body in v12, keep else body, clean up |
||
| 528 | // AbstractFinisher->setFinisherIdentifier() and enable the method in FinisherInterface. |
||
| 529 | $objectManager = GeneralUtility::makeInstance(ObjectManager::class); |
||
| 530 | /** @var FinisherInterface $finisher */ |
||
| 531 | $finisher = $objectManager->get($implementationClassName, $finisherIdentifier); |
||
| 532 | if ($classSchema->hasMethod('setFinisherIdentifier')) { |
||
| 533 | $finisher->setFinisherIdentifier($finisherIdentifier); |
||
| 534 | } |
||
| 535 | } else { |
||
| 536 | /** @var FinisherInterface $finisher */ |
||
| 537 | $finisher = GeneralUtility::makeInstance($implementationClassName); |
||
| 538 | $finisher->setFinisherIdentifier($finisherIdentifier); |
||
| 539 | } |
||
| 540 | |||
| 541 | $finisher->setOptions($defaultOptions); |
||
| 542 | $this->addFinisher($finisher); |
||
| 543 | return $finisher; |
||
| 544 | } |
||
| 545 | throw new FinisherPresetNotFoundException('The finisher preset identified by "' . $finisherIdentifier . '" could not be found, or the implementationClassName was not specified.', 1328709784); |
||
| 546 | } |
||
| 547 | |||
| 548 | /** |
||
| 549 | * Gets all finishers of this form |
||
| 550 | * |
||
| 551 | * @return \TYPO3\CMS\Form\Domain\Finishers\FinisherInterface[] |
||
| 552 | */ |
||
| 553 | public function getFinishers(): array |
||
| 554 | { |
||
| 555 | return $this->finishers; |
||
| 556 | } |
||
| 557 | |||
| 558 | /** |
||
| 559 | * Add an element to the ElementsByIdentifier Cache. |
||
| 560 | * |
||
| 561 | * @param RenderableInterface $renderable |
||
| 562 | * @throws DuplicateFormElementException |
||
| 563 | * @internal |
||
| 564 | */ |
||
| 565 | public function registerRenderable(RenderableInterface $renderable) |
||
| 566 | { |
||
| 567 | if ($renderable instanceof FormElementInterface) { |
||
| 568 | if (isset($this->elementsByIdentifier[$renderable->getIdentifier()])) { |
||
| 569 | throw new DuplicateFormElementException(sprintf('A form element with identifier "%s" is already part of the form.', $renderable->getIdentifier()), 1325663761); |
||
| 570 | } |
||
| 571 | $this->elementsByIdentifier[$renderable->getIdentifier()] = $renderable; |
||
| 572 | } |
||
| 573 | } |
||
| 574 | |||
| 575 | /** |
||
| 576 | * Remove an element from the ElementsByIdentifier cache |
||
| 577 | * |
||
| 578 | * @param RenderableInterface $renderable |
||
| 579 | * @internal |
||
| 580 | */ |
||
| 581 | public function unregisterRenderable(RenderableInterface $renderable) |
||
| 582 | { |
||
| 583 | if ($renderable instanceof FormElementInterface) { |
||
| 584 | unset($this->elementsByIdentifier[$renderable->getIdentifier()]); |
||
| 585 | } |
||
| 586 | } |
||
| 587 | |||
| 588 | /** |
||
| 589 | * Get all form elements with their identifiers as keys |
||
| 590 | * |
||
| 591 | * @return FormElementInterface[] |
||
| 592 | */ |
||
| 593 | public function getElements(): array |
||
| 594 | { |
||
| 595 | return $this->elementsByIdentifier; |
||
| 596 | } |
||
| 597 | |||
| 598 | /** |
||
| 599 | * Get a Form Element by its identifier |
||
| 600 | * |
||
| 601 | * If identifier does not exist, returns NULL. |
||
| 602 | * |
||
| 603 | * @param string $elementIdentifier |
||
| 604 | * @return FormElementInterface The element with the given $elementIdentifier or NULL if none found |
||
| 605 | */ |
||
| 606 | public function getElementByIdentifier(string $elementIdentifier) |
||
| 607 | { |
||
| 608 | return $this->elementsByIdentifier[$elementIdentifier] ?? null; |
||
| 609 | } |
||
| 610 | |||
| 611 | /** |
||
| 612 | * Sets the default value of a form element |
||
| 613 | * |
||
| 614 | * @param string $elementIdentifier identifier of the form element. This supports property paths! |
||
| 615 | * @param mixed $defaultValue |
||
| 616 | * @internal |
||
| 617 | */ |
||
| 618 | public function addElementDefaultValue(string $elementIdentifier, $defaultValue) |
||
| 619 | { |
||
| 620 | $this->elementDefaultValues = ArrayUtility::setValueByPath( |
||
| 621 | $this->elementDefaultValues, |
||
| 622 | $elementIdentifier, |
||
| 623 | $defaultValue, |
||
| 624 | '.' |
||
| 625 | ); |
||
| 626 | } |
||
| 627 | |||
| 628 | /** |
||
| 629 | * returns the default value of the specified form element |
||
| 630 | * or NULL if no default value was set |
||
| 631 | * |
||
| 632 | * @param string $elementIdentifier identifier of the form element. This supports property paths! |
||
| 633 | * @return mixed The elements default value |
||
| 634 | * @internal |
||
| 635 | */ |
||
| 636 | public function getElementDefaultValueByIdentifier(string $elementIdentifier) |
||
| 637 | { |
||
| 638 | return ObjectAccess::getPropertyPath($this->elementDefaultValues, $elementIdentifier); |
||
| 639 | } |
||
| 640 | |||
| 641 | /** |
||
| 642 | * Move $pageToMove before $referencePage |
||
| 643 | * |
||
| 644 | * @param Page $pageToMove |
||
| 645 | * @param Page $referencePage |
||
| 646 | */ |
||
| 647 | public function movePageBefore(Page $pageToMove, Page $referencePage) |
||
| 648 | { |
||
| 649 | $this->moveRenderableBefore($pageToMove, $referencePage); |
||
| 650 | } |
||
| 651 | |||
| 652 | /** |
||
| 653 | * Move $pageToMove after $referencePage |
||
| 654 | * |
||
| 655 | * @param Page $pageToMove |
||
| 656 | * @param Page $referencePage |
||
| 657 | */ |
||
| 658 | public function movePageAfter(Page $pageToMove, Page $referencePage) |
||
| 659 | { |
||
| 660 | $this->moveRenderableAfter($pageToMove, $referencePage); |
||
| 661 | } |
||
| 662 | |||
| 663 | /** |
||
| 664 | * Remove $pageToRemove from form |
||
| 665 | * |
||
| 666 | * @param Page $pageToRemove |
||
| 667 | */ |
||
| 668 | public function removePage(Page $pageToRemove) |
||
| 669 | { |
||
| 670 | $this->removeRenderable($pageToRemove); |
||
| 671 | } |
||
| 672 | |||
| 673 | /** |
||
| 674 | * Bind the current request & response to this form instance, effectively creating |
||
| 675 | * a new "instance" of the Form. |
||
| 676 | * |
||
| 677 | * @param Request $request |
||
| 678 | * @param ResponseInterface $response |
||
| 679 | * @return FormRuntime |
||
| 680 | */ |
||
| 681 | public function bind(Request $request, ResponseInterface $response): FormRuntime |
||
| 682 | { |
||
| 683 | return GeneralUtility::makeInstance(FormRuntime::class, $this, $request, $response); |
||
| 684 | } |
||
| 685 | |||
| 686 | /** |
||
| 687 | * @param string $propertyPath |
||
| 688 | * @return ProcessingRule |
||
| 689 | */ |
||
| 690 | public function getProcessingRule(string $propertyPath): ProcessingRule |
||
| 691 | { |
||
| 692 | if (!isset($this->processingRules[$propertyPath])) { |
||
| 693 | $this->processingRules[$propertyPath] = GeneralUtility::makeInstance(ProcessingRule::class); |
||
| 694 | } |
||
| 695 | return $this->processingRules[$propertyPath]; |
||
| 696 | } |
||
| 697 | |||
| 698 | /** |
||
| 699 | * Get all mapping rules |
||
| 700 | * |
||
| 701 | * @return \TYPO3\CMS\Form\Mvc\ProcessingRule[] |
||
| 702 | * @internal |
||
| 703 | */ |
||
| 704 | public function getProcessingRules(): array |
||
| 705 | { |
||
| 706 | return $this->processingRules; |
||
| 707 | } |
||
| 708 | |||
| 709 | /** |
||
| 710 | * @return array |
||
| 711 | * @internal |
||
| 712 | */ |
||
| 713 | public function getTypeDefinitions(): array |
||
| 716 | } |
||
| 717 | |||
| 718 | /** |
||
| 719 | * @return array |
||
| 720 | * @internal |
||
| 721 | */ |
||
| 722 | public function getValidatorsDefinition(): array |
||
| 725 | } |
||
| 726 | |||
| 727 | /** |
||
| 728 | * @return array |
||
| 729 | * @internal |
||
| 730 | */ |
||
| 731 | public function getConditionContextDefinition(): array |
||
| 734 | } |
||
| 735 | |||
| 736 | /** |
||
| 737 | * Get the persistence identifier of the form |
||
| 738 | * |
||
| 739 | * @return string |
||
| 740 | * @internal |
||
| 741 | */ |
||
| 742 | public function getPersistenceIdentifier(): string |
||
| 743 | { |
||
| 744 | return $this->persistenceIdentifier; |
||
| 745 | } |
||
| 746 | |||
| 747 | /** |
||
| 748 | * Set the renderer class name |
||
| 749 | * |
||
| 750 | * @param string $rendererClassName |
||
| 751 | */ |
||
| 752 | public function setRendererClassName(string $rendererClassName) |
||
| 755 | } |
||
| 756 | |||
| 757 | /** |
||
| 758 | * Get the classname of the renderer |
||
| 759 | * |
||
| 760 | * @return string |
||
| 761 | */ |
||
| 762 | public function getRendererClassName(): string |
||
| 765 | } |
||
| 766 | } |
||
| 767 |