| 1 | <?php |
||
| 13 | class Option |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var bool |
||
| 17 | */ |
||
| 18 | private $isRequired; |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $name; |
||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $abbreviatedName; |
||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | private $defaultValue; |
||
| 31 | |||
| 32 | |||
| 33 | /** |
||
| 34 | * Option constructor. |
||
| 35 | * @param boolean $isRequired |
||
| 36 | * @param string $name |
||
| 37 | * @param string $abbreviatedName |
||
| 38 | * @param string $defaultValue |
||
| 39 | */ |
||
| 40 | public function __construct($isRequired, $name, $abbreviatedName, $defaultValue) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return boolean |
||
| 50 | */ |
||
| 51 | public function isRequired() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getName() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function getAbbreviatedName() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return bool |
||
| 74 | */ |
||
| 75 | public function hasAbbreviatedName() |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @return string |
||
| 83 | */ |
||
| 84 | public function getDefaultValue() |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @return bool |
||
| 91 | */ |
||
| 92 | public function hasDefaultValue() |
||
| 96 | } |