1 | <?php |
||
8 | class CorrectPhpVersionIsInstalled implements Check |
||
9 | { |
||
10 | /** @var Filesystem */ |
||
11 | private $filesystem; |
||
12 | |||
13 | public function __construct(Filesystem $filesystem) |
||
17 | |||
18 | /** |
||
19 | * The name of the check. |
||
20 | * |
||
21 | * @param array $config |
||
22 | * @return string |
||
23 | */ |
||
24 | public function name(array $config): string |
||
28 | |||
29 | /** |
||
30 | * Perform the actual verification of this check. |
||
31 | * |
||
32 | * @param array $config |
||
33 | * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException |
||
34 | * @return bool |
||
35 | */ |
||
36 | public function check(array $config): bool |
||
45 | |||
46 | /** |
||
47 | * The error message to display in case the check does not pass. |
||
48 | * |
||
49 | * @param array $config |
||
50 | * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException |
||
51 | * @return string |
||
52 | */ |
||
53 | public function message(array $config): string |
||
60 | |||
61 | /** |
||
62 | * @return mixed |
||
63 | * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException |
||
64 | */ |
||
65 | public function getRequiredPhpConstraint() |
||
70 | } |
||
71 |