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

SkippedTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 8
c 1
b 0
f 1
dl 0
loc 27
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setReason() 0 2 1
A __construct() 0 3 1
A getReason() 0 2 1
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
?>