Url
5 years ago
DateRange.php
5 years ago
ListScreenId.php
5 years ago
QueryAware.php
5 years ago
QueryAwareTrait.php
5 years ago
ToggleOptions.php
5 years ago
Url.php
5 years ago
ToggleOptions.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Type; |
| 4 | |
| 5 | use AC\Helper\Select\Option; |
| 6 | |
| 7 | final class ToggleOptions { |
| 8 | |
| 9 | /** |
| 10 | * @var Option |
| 11 | */ |
| 12 | private $disabled; |
| 13 | |
| 14 | /** |
| 15 | * @var Option |
| 16 | */ |
| 17 | private $enabled; |
| 18 | |
| 19 | public function __construct( Option $disabled, Option $enabled ) { |
| 20 | $this->disabled = $disabled; |
| 21 | $this->enabled = $enabled; |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * @return Option |
| 26 | */ |
| 27 | public function get_enabled() { |
| 28 | return $this->enabled; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * @return Option |
| 33 | */ |
| 34 | public function get_disabled() { |
| 35 | return $this->disabled; |
| 36 | } |
| 37 | |
| 38 | } |