1 | <?php |
||
11 | class HealthServiceProvider |
||
12 | { |
||
13 | /** |
||
14 | * @var HealthAggregatorInterface |
||
15 | */ |
||
16 | protected $aggregator; |
||
17 | |||
18 | /** |
||
19 | * @var HealthIndicatorInterface[] |
||
20 | */ |
||
21 | protected $indicators; |
||
22 | |||
23 | /** |
||
24 | * HealthServiceProvider constructor. |
||
25 | * @param HealthAggregatorInterface $aggregator |
||
26 | * @param \Actuator\Health\Indicator\HealthIndicatorInterface[] $indicators |
||
27 | */ |
||
28 | public function __construct(HealthAggregatorInterface $aggregator, array $indicators) |
||
33 | |||
34 | /** |
||
35 | * @param ResponseInterface $response |
||
36 | * @return ResponseInterface |
||
37 | */ |
||
38 | public function getHealth(ResponseInterface $response) |
||
48 | |||
49 | /** |
||
50 | * @return Health |
||
51 | */ |
||
52 | private function getHealthResult() |
||
61 | |||
62 | /** |
||
63 | * @param Health $healthResult |
||
64 | * @return array |
||
65 | */ |
||
66 | private function formatHealthResult(Health $healthResult) |
||
82 | } |
||
83 |