Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | final class SkippedTest { |
||
14 | use \Nette\SmartObject; |
||
15 | |||
16 | public string $name; |
||
17 | /** @var string|bool */ |
||
18 | private $reason; |
||
19 | |||
20 | /** |
||
21 | * @param bool|string $reason |
||
22 | */ |
||
23 | public function __construct(string $name, $reason) { |
||
24 | $this->name = $name; |
||
25 | $this->reason = $reason; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return bool|string |
||
30 | */ |
||
31 | protected function getReason() { |
||
32 | return $this->reason; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param string|bool $reason |
||
37 | */ |
||
38 | protected function setReason($reason): void { |
||
40 | } |
||
41 | } |
||
42 | ?> |