| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class RequiredHtmlOptions implements HtmlOptionsProvider, RuleInterface |
||
| 11 | { |
||
| 12 | use RuleAwareTrait; |
||
| 13 | |||
| 14 | private bool $ariaAttribute = false; |
||
| 15 | |||
| 16 | public function __construct(Required $rule) |
||
| 19 | } |
||
| 20 | |||
| 21 | public function withAriaAttribute(bool $value): self |
||
| 22 | { |
||
| 23 | $new = clone $this; |
||
| 24 | $new->ariaAttribute = $value; |
||
| 25 | return $new; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getHtmlOptions(): array |
||
| 33 | ]; |
||
| 34 | } |
||
| 36 |