1 | <?php |
||
13 | class DiskSpaceHealthIndicator extends AbstractHealthIndicator |
||
14 | { |
||
15 | /** |
||
16 | * @var DiskSpaceHealthIndicatorProperties |
||
17 | */ |
||
18 | private $properties; |
||
19 | |||
20 | /** |
||
21 | * Create a new DiskSpaceHealthIndicator. |
||
22 | * |
||
23 | * @param DiskSpaceHealthIndicatorProperties $properties |
||
24 | */ |
||
25 | 9 | public function __construct(DiskSpaceHealthIndicatorProperties $properties = null) |
|
26 | { |
||
27 | 9 | if (is_null($properties)) { |
|
28 | 3 | $properties = new DiskSpaceHealthIndicatorProperties(); |
|
29 | 3 | } |
|
30 | |||
31 | 9 | $this->properties = $properties; |
|
32 | 9 | } |
|
33 | |||
34 | /** |
||
35 | * Actual health check logic. |
||
36 | * |
||
37 | * @param HealthBuilder $builder |
||
38 | * @throws \Exception any Exception that should create a Status::DOWN |
||
39 | * system status. |
||
40 | */ |
||
41 | 9 | protected function doHealthCheck(HealthBuilder $builder) |
|
54 | } |
||
55 |