| 1 | <?php |
||
| 7 | class PhpExtensionsAreDisabled implements Check |
||
| 8 | { |
||
| 9 | |||
| 10 | /** @var Collection */ |
||
| 11 | private $extensions; |
||
| 12 | |||
| 13 | 16 | public function __construct() |
|
| 17 | |||
| 18 | /** |
||
| 19 | * The name of the check. |
||
| 20 | * |
||
| 21 | * @param array $config |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | 4 | public function name(array $config): string |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Perform the actual verification of this check. |
||
| 31 | * |
||
| 32 | * @param array $config |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | 8 | public function check(array $config): bool |
|
| 44 | |||
| 45 | /** |
||
| 46 | * The error message to display in case the check does not pass. |
||
| 47 | * |
||
| 48 | * @param array $config |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | 4 | public function message(array $config): string |
|
| 57 | } |
||
| 58 |