| 1 | <?php |
||
| 6 | class PhpMemoryLimitCheck extends AbstractCheck |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $memoryRequired; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * |
||
| 16 | * @param string $label Label |
||
| 17 | * @param string $memoryRequired amount of memory that is (at least) required in megabytes |
||
| 18 | */ |
||
| 19 | public function __construct(string $label, string $memoryRequired) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Returns size in megabytes from a PHP size string like '1024M'. |
||
| 27 | * |
||
| 28 | * @param $sizeStr |
||
| 29 | * @return float|int |
||
| 30 | */ |
||
| 31 | public function getMegabytesFromSizeString($sizeStr) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Check URL |
||
| 53 | * |
||
| 54 | * @return Result |
||
| 55 | */ |
||
| 56 | public function checkStatus(): Result |
||
| 69 | } |
||
| 70 |