| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function label(string $label, array $attributes = [], bool $before = true): static |
||
| 23 | { |
||
| 24 | $this->label = $before ? |
||
| 25 | $this->addSiblingPrev('label', $attributes) : |
||
|
|
|||
| 26 | $this->addSiblingNext('label', $attributes); |
||
| 27 | $this->label->addBaseClass('form-label'); |
||
| 28 | $this->label->addChild(new Html($label)); |
||
| 29 | return $this; |
||
| 30 | } |
||
| 43 |