| 1 | <?php |
||
| 18 | class CurlExtensionCheck implements CheckInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Version of curl extension |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $extensionVersion = ''; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Executes the check itselfs |
||
| 29 | * |
||
| 30 | * @return boolean |
||
| 31 | */ |
||
| 32 | 1 | public function check() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Returns the message, if the check succeeded |
||
| 47 | * |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 1 | public function getSuccessMessage() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * Returns the message, if the check fails |
||
| 59 | * |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | 1 | public function getFailureMessage() |
|
| 67 | |||
| 68 | /** |
||
| 69 | * Returns if this check is optional or required. |
||
| 70 | * |
||
| 71 | * @return bool |
||
| 72 | */ |
||
| 73 | 1 | public function isOptional() |
|
| 77 | } |
||
| 78 |