| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | trait TLabel |
||
| 12 | { |
||
| 13 | protected ?string $label = null; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * 1 id(for=""), 2 labelText, 3 attributes |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected string $templateLabel = '<label for="%1$s"%3$s>%2$s</label>'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Set object label |
||
| 23 | * @param string $value |
||
| 24 | */ |
||
| 25 | 82 | public function setLabel(?string $value): void |
|
| 28 | 82 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Returns object label |
||
| 32 | * @return string|null |
||
| 33 | */ |
||
| 34 | 19 | public function getLabel(): ?string |
|
| 39 |