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