Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
23 | class Check extends CheckAbstract |
||
24 | { |
||
25 | /** |
||
26 | * @var DiskUsage |
||
27 | */ |
||
28 | private $checker; |
||
29 | |||
30 | /** |
||
31 | * @param int $warningThreshold A number between 0 and 100 |
||
32 | * @param int $criticalThreshold A number between 0 and 100 |
||
33 | * @param string $path The disk path to check, i.e. '/tmp' or 'C:' (defaults to /) |
||
34 | * |
||
35 | * @throws InvalidArgumentException |
||
36 | */ |
||
37 | 2 | public function __construct($warningThreshold, $criticalThreshold, $path = '/') |
|
38 | { |
||
39 | 2 | $this->checker = new DiskUsage($warningThreshold, $criticalThreshold, $path); |
|
40 | 2 | } |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 2 | public function check() |
|
48 | } |
||
49 | } |
||
50 |