1 | <?php |
||
8 | class PhpExtensionsAreInstalled implements Check |
||
9 | { |
||
10 | |||
11 | const EXT = 'ext-'; |
||
12 | |||
13 | /** @var Filesystem */ |
||
14 | private $filesystem; |
||
15 | |||
16 | public function __construct(Filesystem $filesystem) |
||
20 | |||
21 | /** @var Collection */ |
||
22 | private $extensions; |
||
23 | |||
24 | /** |
||
25 | * The name of the check. |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public function name(): string |
||
33 | |||
34 | /** |
||
35 | * The error message to display in case the check does not pass. |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function message(): string |
||
43 | |||
44 | /** |
||
45 | * Perform the actual verification of this check. |
||
46 | * |
||
47 | * @return bool |
||
48 | */ |
||
49 | public function check(): bool |
||
67 | |||
68 | /** |
||
69 | * @return array |
||
70 | * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException |
||
71 | */ |
||
72 | public function getExtensionsRequiredInComposerFile() |
||
84 | |||
85 | } |
||
86 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.