| 1 | <?php |
||
| 9 | class PHPUnitOption |
||
| 10 | { |
||
| 11 | /** @var string */ |
||
| 12 | private $name; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | private $shortName; |
||
| 16 | |||
| 17 | /** @var string */ |
||
| 18 | private $value; |
||
| 19 | |||
| 20 | /** @var bool */ |
||
| 21 | private $hasValue; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * PHPUnitOption constructor. |
||
| 25 | * @param string $name |
||
| 26 | * @param bool $hasValue |
||
| 27 | * @param string | null $shortName |
||
| 28 | */ |
||
| 29 | public function __construct($name, $hasValue = true, $shortName = null) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getName() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getShortName() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $value |
||
| 54 | */ |
||
| 55 | public function setValue($value) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | public function getValue() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return boolean |
||
| 70 | */ |
||
| 71 | public function hasValue() |
||
| 75 | } |
||
| 76 |