Completed
Push — master ( fbbc84...b48e27 )
by Jakub
01:42
created

SkippedTest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 2
dl 0
loc 3
rs 10
1
<?php
2
declare(strict_types=1);
3
4
namespace MyTester;
5
6
/**
7
 * Skipped test info
8
 *
9
 * @author Jakub Konečný
10
 * @internal
11
 * @property string|bool $reason
12
 */
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 {
39
    $this->reason = $reason;
40
  }
41
}
42
?>