Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function __construct( |
||
19 | $name = null, |
||
20 | $label = null, |
||
21 | $placeholder = null, |
||
22 | $class = null, |
||
23 | $required = false, |
||
24 | $icon = null |
||
25 | ) |
||
26 | { |
||
27 | $this->label = $label; |
||
28 | $this->setName($name); |
||
29 | $this->placeholder = $placeholder ?? (!$name ? str_replace('-', '_', Str::kebab($label)) : ''); |
||
30 | $this->class = $class; |
||
31 | $this->required = $required; |
||
32 | $this->icon = $icon; |
||
33 | } |
||
34 | |||
49 |