1 | <?php |
||
9 | class MaximumStorageInMegabytes extends HealthCheck |
||
10 | { |
||
11 | /** @var int */ |
||
12 | protected $maximumSizeInMegaBytes; |
||
13 | |||
14 | public function __construct(int $maximumSizeInMegaBytes = 5000) |
||
18 | |||
19 | public function checkHealth(BackupDestination $backupDestination) |
||
31 | |||
32 | protected function exceedsAllowance(int $usageInBytes): bool |
||
36 | |||
37 | protected function bytes(int $megaBytes): int |
||
41 | |||
42 | protected function humanReadableSize(int $sizeInBytes): string |
||
46 | } |
||
47 |