Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class Vatsim extends MetarHTTPClient implements MetarProviderInterface |
||
23 | { |
||
24 | |||
25 | private $serviceUrl = 'http://metar.vatsim.net/metar.php?id={{_ICAO_}}'; |
||
26 | private $icao; |
||
27 | |||
28 | 2 | public function __construct($icao) |
|
31 | 2 | } |
|
32 | |||
33 | 2 | private function getMetarDataString() |
|
34 | { |
||
35 | 2 | $data = $this->getMetarAPIResponse(str_replace('{{_ICAO_}}', $this->icao, $this->serviceUrl)); |
|
36 | 2 | return trim($data); |
|
37 | } |
||
38 | |||
39 | 2 | public function __toString() |
|
42 | } |
||
43 | } |
||
44 |