| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class SelectOption extends AControl implements IOriginalValue |
||
| 15 | { |
||
| 16 | use TSelected; |
||
| 17 | |||
| 18 | protected string $templateLabel = ''; |
||
| 19 | protected string $templateInput = '<option value="%1$s"%2$s>%3$s</option>'; |
||
| 20 | |||
| 21 | 2 | public function getOriginalValue() |
|
| 22 | { |
||
| 23 | 2 | return $this->originalValue; |
|
| 24 | } |
||
| 25 | |||
| 26 | 4 | public function renderLabel($attributes = []): string |
|
| 27 | { |
||
| 28 | 4 | return ''; |
|
| 29 | } |
||
| 30 | |||
| 31 | 4 | public function renderInput($attributes = null): string |
|
| 32 | { |
||
| 33 | 4 | return $this->wrapIt(sprintf($this->templateInput, $this->escaped(strval($this->originalValue)), $this->renderAttributes(), $this->escaped(strval($this->getLabel()))), $this->wrappersInput); |
|
| 34 | } |
||
| 35 | |||
| 36 | 4 | public function renderErrors(array $errors): string |
|
| 39 | } |
||
| 40 | } |
||
| 41 |