Total Complexity | 1 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class Result { |
||
12 | |||
13 | /** |
||
14 | * Data can be anything serializable. |
||
15 | * |
||
16 | * @var mixed |
||
17 | */ |
||
18 | public $data; |
||
19 | |||
20 | /** |
||
21 | * The name of the key under which to store the results in a QaCheck Pass. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | public $name; |
||
26 | |||
27 | /** |
||
28 | * Did the QaCheck pass? |
||
29 | * |
||
30 | * @var bool |
||
31 | */ |
||
32 | public $ok; |
||
33 | |||
34 | /** |
||
35 | * Result constructor. |
||
36 | * |
||
37 | * @param string $name |
||
38 | * @param bool $status |
||
39 | * @param null $data |
||
|
|||
40 | */ |
||
41 | public function __construct(string $name, bool $status, $data = NULL) { |
||
47 |