1 | <?php |
||
11 | class ServersArePingable implements Check |
||
12 | { |
||
13 | protected const DEFAULT_TIMEOUT = 5; |
||
14 | |||
15 | /** @var Collection */ |
||
16 | protected $notReachableServers; |
||
17 | |||
18 | /** |
||
19 | * The name of the check. |
||
20 | * |
||
21 | * @param array $config |
||
22 | * @return string |
||
23 | */ |
||
24 | public function name(array $config): string |
||
25 | { |
||
26 | return trans('self-diagnosis::checks.servers_are_pingable.name'); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Perform the actual verification of this check. |
||
31 | * |
||
32 | * @param array $config |
||
33 | * @return bool |
||
34 | * @throws InvalidConfigurationException |
||
35 | */ |
||
36 | 28 | 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 | 8 | public function message(array $config): string |
|
76 | |||
77 | /** |
||
78 | * Parses an array of servers which can be given in different formats. |
||
79 | * Unifies the format for the resulting collection. |
||
80 | * |
||
81 | * @param array $servers |
||
82 | * @return Collection |
||
83 | * @throws InvalidConfigurationException |
||
84 | */ |
||
85 | 28 | private function parseConfiguredServers(array $servers): Collection |
|
112 | } |
||
113 |
This function has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed from the class and what other function to use instead.