| 1 | <?php |
||
| 14 | class Argument |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $name; |
||
| 20 | /** |
||
| 21 | * @var boolean |
||
| 22 | */ |
||
| 23 | private $required; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $defaultValue; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Argument constructor. |
||
| 32 | * @param string $name |
||
| 33 | * @param bool $required |
||
| 34 | * @param string $defaultValue |
||
| 35 | */ |
||
| 36 | public function __construct($name, $required, $defaultValue) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getName() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return boolean |
||
| 53 | */ |
||
| 54 | public function isRequired() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public function getDefaultValue() |
||
| 66 | |||
| 67 | public function hasDefaultValue() |
||
| 71 | } |