| 1 | <?php |
||
| 9 | class Option extends BaseElement implements Selectable, Disabledable |
||
| 10 | { |
||
| 11 | /** @var string */ |
||
| 12 | protected $tag = 'option'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @return static |
||
| 16 | */ |
||
| 17 | public function selected() |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return static |
||
| 24 | */ |
||
| 25 | public function disabled() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param bool $condition |
||
| 32 | * |
||
| 33 | * @return static |
||
| 34 | */ |
||
| 35 | public function selectedIf($condition) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param bool $condition |
||
| 44 | * |
||
| 45 | * @return static |
||
| 46 | */ |
||
| 47 | public function disabledIf($condition) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return static |
||
| 56 | */ |
||
| 57 | public function unselected() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return static |
||
| 64 | */ |
||
| 65 | public function undisabled() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @param string|null $value |
||
| 72 | * |
||
| 73 | * @return static |
||
| 74 | */ |
||
| 75 | public function value($value) |
||
| 79 | } |
||
| 80 |