| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class AbstractCheckableInput extends AbstractInput implements CheckableFieldInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var bool |
||
| 13 | */ |
||
| 14 | protected $checked; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Get the value of checked |
||
| 18 | * |
||
| 19 | * @return bool |
||
| 20 | */ |
||
| 21 | public function isChecked(): bool |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Set the value of checked |
||
| 28 | * |
||
| 29 | * @param bool $checked |
||
| 30 | * |
||
| 31 | * @return self |
||
| 32 | */ |
||
| 33 | public function setChecked(bool $checked): CheckableFieldInterface |
||
| 34 | { |
||
| 35 | $this->checked = $checked; |
||
| 36 | |||
| 37 | return $this; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritDoc} |
||
| 42 | */ |
||
| 43 | protected function resolveAttributes(): AbstractHtmlElement |
||
| 47 | } |
||
| 48 | } |
||
| 49 |