| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| 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 | 122 | public function __construct(Required $rule) |
|
| 19 | 122 | } |
|
| 20 | |||
| 21 | 116 | public function withAriaAttribute(bool $value): self |
|
| 22 | { |
||
| 23 | 116 | $new = clone $this; |
|
| 24 | 116 | $new->ariaAttribute = $value; |
|
| 25 | 116 | return $new; |
|
| 26 | } |
||
| 27 | |||
| 28 | 19 | public function getHtmlOptions(): array |
|
| 33 | ]; |
||
| 34 | } |
||
| 36 |