1 | <?php |
||
16 | class ArrayReporter implements ReporterInterface |
||
17 | { |
||
18 | const STATUS_OK = 'OK'; |
||
19 | const STATUS_KO = 'KO'; |
||
20 | |||
21 | private $globalStatus = self::STATUS_OK; |
||
22 | private $results = []; |
||
23 | |||
24 | /** |
||
25 | * @return array |
||
26 | */ |
||
27 | public function getResults() |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getGlobalStatus() |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function onAfterRun(CheckInterface $check, ResultInterface $result, $checkAlias = null) |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function onStart(\ArrayObject $checks, $runnerConfig) |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function onBeforeRun(CheckInterface $check, $checkAlias = null) |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function onStop(ResultsCollection $results) |
||
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | public function onFinish(ResultsCollection $results) |
||
108 | } |
||
109 |