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