Total Complexity | 4 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class Pass { |
||
13 | |||
14 | /** |
||
15 | * The QaCheck instance of which this is a pass. |
||
16 | * |
||
17 | * @var \Drupal\qa\Plugin\QaCheckInterface |
||
18 | */ |
||
19 | public $check; |
||
20 | |||
21 | /** |
||
22 | * The pass lifecycle. |
||
23 | * |
||
24 | * @var \Drupal\qa\Same |
||
25 | */ |
||
26 | public $life; |
||
27 | |||
28 | /** |
||
29 | * Did all steps succeed ? |
||
30 | * |
||
31 | * @var bool |
||
32 | */ |
||
33 | public $ok; |
||
34 | |||
35 | /** |
||
36 | * Serializable array for the results. |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | public $result; |
||
41 | |||
42 | /** |
||
43 | * Pass constructor. |
||
44 | * |
||
45 | * @param \Drupal\qa\Plugin\QaCheckInterface $check |
||
46 | * A check on which to report. |
||
47 | */ |
||
48 | public function __construct(QaCheckInterface $check) { |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * Record results from one of the checks in a control pass. |
||
57 | * |
||
58 | * @param Result|null $checkResult |
||
59 | * A check result to store. |
||
60 | */ |
||
61 | public function record(?Result $checkResult) { |
||
73 |