1 | <?php |
||
7 | class EnvFileExists implements Check |
||
8 | { |
||
9 | |||
10 | /** @var Filesystem */ |
||
11 | private $filesystem; |
||
12 | |||
13 | 4 | 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 | * @return bool |
||
34 | */ |
||
35 | 4 | public function check(array $config): bool |
|
39 | |||
40 | /** |
||
41 | * The error message to display in case the check does not pass. |
||
42 | * |
||
43 | * @param array $config |
||
44 | * @return string |
||
45 | */ |
||
46 | public function message(array $config): string |
||
50 | } |
||
51 |