| 1 | <?php |
||
| 18 | class Check |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * The URL we're checking |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $url; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Initialize |
||
| 29 | * |
||
| 30 | * @param string $url |
||
| 31 | */ |
||
| 32 | public function __construct($url = null) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Set the URL to check |
||
| 41 | * |
||
| 42 | * @param string $url |
||
| 43 | * |
||
| 44 | * @return Mvi\Check |
||
| 45 | */ |
||
| 46 | public function setUrl($url) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get the edition and version for the url |
||
| 55 | * |
||
| 56 | * @return array|boolean |
||
| 57 | */ |
||
| 58 | public function getInfo() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Get version information from json |
||
| 72 | * |
||
| 73 | * @return array |
||
| 74 | */ |
||
| 75 | public function getVersions() |
||
| 82 | |||
| 83 | /** |
||
| 84 | * Validate the URL to check |
||
| 85 | * |
||
| 86 | * @param string $url |
||
| 87 | * |
||
| 88 | * @return void |
||
| 89 | */ |
||
| 90 | protected function validateUrl($url) |
||
| 99 | } |
||
| 100 |