1 | <?php |
||
11 | class PHPUnitOption |
||
12 | { |
||
13 | /** @var string */ |
||
14 | private $name; |
||
15 | |||
16 | /** @var string|null */ |
||
17 | private $shortName; |
||
18 | |||
19 | /** @var string|null */ |
||
20 | private $value; |
||
21 | |||
22 | /** @var bool */ |
||
23 | private $hasValue; |
||
24 | |||
25 | /** |
||
26 | * PHPUnitOption constructor. |
||
27 | * @param string $name |
||
28 | * @param bool $hasValue |
||
29 | * @param string | null $shortName |
||
30 | */ |
||
31 | 28 | public function __construct(string $name, bool $hasValue = true, string $shortName = null) |
|
37 | |||
38 | 28 | public function getName(): string |
|
42 | |||
43 | /** |
||
44 | * @return string|null |
||
45 | */ |
||
46 | 24 | public function getShortName() |
|
50 | |||
51 | /** |
||
52 | * @param string $value |
||
53 | */ |
||
54 | 7 | public function setValue(string $value = null) |
|
58 | |||
59 | /** |
||
60 | * @return string|null |
||
61 | */ |
||
62 | 6 | public function getValue() |
|
66 | |||
67 | 28 | public function hasValue(): bool |
|
71 | } |
||
72 |