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) |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function onStart(\ArrayObject $checks, $runnerConfig) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function onBeforeRun(CheckInterface $check, $checkAlias = null) |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function onStop(ResultsCollection $results) |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function onFinish(ResultsCollection $results) |
||
79 | |||
80 | /** |
||
81 | * @param $checkAlias |
||
82 | */ |
||
83 | public function prepareResult(CheckInterface $check, ResultInterface $result, $checkAlias): array |
||
116 | } |
||
117 |