| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | final class InputText extends AbstractField |
||
| 18 | { |
||
| 19 | use PlaceholderTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @psalm-var HtmlAttributes |
||
| 23 | */ |
||
| 24 | private array $inputTagAttributes = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @psalm-param HtmlAttributes $attributes |
||
| 28 | */ |
||
| 29 | public function inputTagAttributes(array $attributes): self |
||
| 30 | { |
||
| 31 | $new = clone $this; |
||
| 32 | $new->inputTagAttributes = $attributes; |
||
| 33 | return $new; |
||
| 34 | } |
||
| 35 | |||
| 36 | protected function generateInput(): string |
||
| 50 | } |
||
| 51 | } |
||
| 52 |