| Total Complexity | 5 |
| Total Lines | 75 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class OptGroup extends AbstractHtmlElement |
||
| 11 | { |
||
| 12 | use MultiValueSelectionTrait; |
||
| 13 | use RendersOptionsTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * |
||
| 17 | */ |
||
| 18 | protected $value = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $label; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var bool |
||
| 27 | */ |
||
| 28 | protected $disabled = false; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var OptionsProviderInterface |
||
| 32 | */ |
||
| 33 | protected $selectionProvider; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * |
||
| 37 | */ |
||
| 38 | public function __construct(string $label) |
||
| 39 | { |
||
| 40 | $this->label = $label; |
||
| 41 | |||
| 42 | parent::__construct(); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get the value of disabled |
||
| 47 | * |
||
| 48 | * @return bool |
||
| 49 | */ |
||
| 50 | public function isDisabled(): bool |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Set the value of disabled |
||
| 57 | * |
||
| 58 | * @param bool $disabled |
||
| 59 | * |
||
| 60 | * @return self |
||
| 61 | */ |
||
| 62 | public function setDisabled(bool $disabled) |
||
| 63 | { |
||
| 64 | $this->disabled = $disabled; |
||
| 65 | |||
| 66 | return $this; |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * |
||
| 71 | */ |
||
| 72 | protected function resolveAttributes(): AbstractHtmlElement |
||
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * |
||
| 81 | */ |
||
| 82 | protected function renderHtmlMarkup(): string |
||
| 85 | } |
||
| 86 | } |
||
| 87 |