| 1 | <?php |
||
| 8 | class Option extends BaseElement implements Selectable |
||
| 9 | { |
||
| 10 | /** @var string */ |
||
| 11 | protected $tag = 'option'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @return static |
||
| 15 | */ |
||
| 16 | public function selected() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param bool $condition |
||
| 23 | * |
||
| 24 | * @return static |
||
| 25 | */ |
||
| 26 | public function selectedIf($condition) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return static |
||
| 35 | */ |
||
| 36 | public function unselected() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string|null $value |
||
| 43 | * |
||
| 44 | * @return static |
||
| 45 | */ |
||
| 46 | public function value($value) |
||
| 50 | } |
||
| 51 |