Debian Codegraph @

vendor/ipl/html/src/Contract/DecorableFormElement.php

raw
1 <?php
2
3 namespace ipl\Html\Contract;
4
5 use ipl\Html\FormDecoration\DecoratorChain;
6
7 /**
8 * Representation of form elements that support decoration
9 */
10 interface DecorableFormElement
11 {
12 /**
13 * Get all decorators of this element
14 *
15 * @return DecoratorChain<FormElementDecoration>
16 */
17 public function getDecorators(): DecoratorChain;
18
19 /**
20 * Get whether the element has any decorators
21 *
22 * @return bool
23 */
24 public function hasDecorators(): bool;
25
26 /**
27 * Decorate the element using its decorators
28 *
29 * @return void
30 */
31 public function applyDecoration(): void;
32 }