| 1 | <?php |
||
| 18 | class SSHCheck implements CheckInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Version of ssh |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $sshVersion = ''; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Executes the check itselfs |
||
| 29 | * |
||
| 30 | * @return boolean |
||
| 31 | */ |
||
| 32 | 1 | public function check() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Returns the message, if the check succeeded |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 1 | public function getSuccessMessage() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * Returns the message, if the check fails |
||
| 61 | * |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | 1 | public function getFailureMessage() |
|
| 69 | |||
| 70 | /** |
||
| 71 | * Returns if this check is optional or required. |
||
| 72 | * |
||
| 73 | * @return bool |
||
| 74 | */ |
||
| 75 | 1 | public function isOptional() |
|
| 79 | } |
||
| 80 |