1 | <?php |
||
8 | class Select extends BaseElement |
||
9 | { |
||
10 | /** @var string */ |
||
11 | protected $tag = 'select'; |
||
12 | |||
13 | /** @var array */ |
||
14 | protected $options = []; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $value = ''; |
||
18 | |||
19 | /** |
||
20 | * @param string $name |
||
21 | * |
||
22 | * @return static |
||
23 | */ |
||
24 | public function name(?string $name) |
||
28 | |||
29 | /** |
||
30 | * @param iterable $options |
||
31 | * |
||
32 | * @return static |
||
33 | */ |
||
34 | public function options(iterable $options) |
||
43 | |||
44 | public function placeholder(string $text) |
||
52 | |||
53 | /** |
||
54 | * @param string $value |
||
55 | * |
||
56 | * @return static |
||
57 | */ |
||
58 | public function value(?string $value) |
||
68 | |||
69 | protected function hasSelection(): bool |
||
73 | |||
74 | protected function applyValueToOptions() |
||
84 | } |
||
85 |