| 1 | <?php |
||
| 16 | class ElasticsearchCanBeAccessed implements Check |
||
| 17 | { |
||
| 18 | private $message; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The name of the check. |
||
| 22 | * |
||
| 23 | * @param array $config |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function name(array $config): string |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Perform the actual verification of this check. |
||
| 33 | * |
||
| 34 | * @param array $config |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | public function check(array $config): bool |
||
| 59 | |||
| 60 | /** |
||
| 61 | * The error message to display in case the check does not pass. |
||
| 62 | * |
||
| 63 | * @param array $config |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | public function message(array $config): string |
||
| 72 | } |
||
| 73 |