| 1 | <?php |
||
| 7 | class CorrectPhpVersionIsInstalled implements Check |
||
| 8 | { |
||
| 9 | /** @var Filesystem */ |
||
| 10 | private $filesystem; |
||
| 11 | |||
| 12 | public function __construct(Filesystem $filesystem) |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The name of the check. |
||
| 19 | * |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public function name(): string |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Perform the actual verification of this check. |
||
| 29 | * |
||
| 30 | * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | public function check(): bool |
||
| 37 | |||
| 38 | /** |
||
| 39 | * The error message to display in case the check does not pass. |
||
| 40 | * |
||
| 41 | * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function message() : string |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return mixed |
||
| 51 | * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException |
||
| 52 | */ |
||
| 53 | public function getRequiredPhpVersion() |
||
| 60 | } |