| Conditions | 3 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function __construct( |
||
| 22 | string $name, |
||
| 23 | string $label = '', |
||
| 24 | $options = [], |
||
| 25 | $bind = null, |
||
| 26 | $default = null, |
||
| 27 | bool $multiple = false, |
||
| 28 | bool $showErrors = true |
||
| 29 | ) { |
||
| 30 | $this->name = $name; |
||
| 31 | $this->label = $label; |
||
| 32 | $this->options = $options; |
||
| 33 | |||
| 34 | if ($this->isNotWired()) { |
||
| 35 | $default = $this->getBoundValue($bind, $name) ?: $default; |
||
| 36 | |||
| 37 | $this->selectedKey = old($name, $default); |
||
| 38 | } |
||
| 39 | |||
| 40 | $this->multiple = $multiple; |
||
| 41 | $this->showErrors = $showErrors; |
||
| 42 | } |
||
| 61 |