1 | <?php |
||
10 | class PhpExtensionsAreInstalled implements Check |
||
11 | { |
||
12 | |||
13 | const EXT = 'ext-'; |
||
14 | |||
15 | /** @var Filesystem */ |
||
16 | private $filesystem; |
||
17 | |||
18 | public function __construct(Filesystem $filesystem) |
||
22 | |||
23 | /** @var Collection */ |
||
24 | private $extensions; |
||
25 | |||
26 | /** |
||
27 | * The name of the check. |
||
28 | * |
||
29 | * @param array $config |
||
30 | * @return string |
||
31 | */ |
||
32 | public function name(array $config): string |
||
36 | |||
37 | /** |
||
38 | * The error message to display in case the check does not pass. |
||
39 | * |
||
40 | * @param array $config |
||
41 | * @return string |
||
42 | */ |
||
43 | public function message(array $config): string |
||
49 | |||
50 | /** |
||
51 | * Perform the actual verification of this check. |
||
52 | * |
||
53 | * @param array $config |
||
54 | * @return bool |
||
55 | */ |
||
56 | public function check(array $config): bool |
||
69 | |||
70 | /** |
||
71 | * @return array |
||
72 | * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException |
||
73 | */ |
||
74 | public function getExtensionsRequiredInComposerFile() |
||
89 | |||
90 | } |
||
91 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.