| Total Complexity | 1 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait ReadonlyTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * A boolean attribute that controls whether or not the user can edit the form control. |
||
| 14 | * |
||
| 15 | * @param bool $value Whether to allow the value to be edited by the user. |
||
| 16 | * |
||
| 17 | * @link https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly |
||
| 18 | */ |
||
| 19 | public function readonly(bool $value = true): static |
||
| 26 |