1 | <?php |
||
10 | class Select extends BaseElement |
||
11 | { |
||
12 | /** @var string */ |
||
13 | protected $tag = 'select'; |
||
14 | |||
15 | /** @var array */ |
||
16 | protected $options = []; |
||
17 | |||
18 | /** @var string|iterable */ |
||
19 | protected $value = ''; |
||
20 | |||
21 | /** |
||
22 | * @return static |
||
23 | */ |
||
24 | public function multiple() |
||
40 | |||
41 | /** |
||
42 | * @param string $name |
||
43 | * |
||
44 | * @return static |
||
45 | */ |
||
46 | public function name(?string $name) |
||
50 | |||
51 | /** |
||
52 | * @param iterable $options |
||
53 | * |
||
54 | * @return static |
||
55 | */ |
||
56 | public function options(iterable $options) |
||
65 | |||
66 | public function placeholder(string $text) |
||
75 | |||
76 | /** |
||
77 | * @param string|iterable $value |
||
78 | * |
||
79 | * @return static |
||
80 | */ |
||
81 | public function value($value = null) |
||
91 | |||
92 | protected function hasSelection(): bool |
||
96 | |||
97 | protected function applyValueToOptions() |
||
113 | } |
||
114 |