| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | trait InputLabelTrait |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var HtmlElement|null |
||
| 12 | */ |
||
| 13 | private HtmlElement|null $label = null; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $label |
||
| 17 | * @param array $attributes |
||
| 18 | * @param bool $before |
||
| 19 | * |
||
| 20 | * @return static |
||
| 21 | */ |
||
| 22 | public function label(string $label, array $attributes = [], bool $before = true): static |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | protected function setForLabelAttr(): void |
||
| 43 |