| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 19 | class MetarHTTPClient |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Optional Guzzle Client configuration. |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | protected $guzzleConf = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * HTTP Client |
||
| 30 | * @param array $config Optional Guzzle configuration. |
||
| 31 | */ |
||
| 32 | 6 | public function __construct($config = []) |
|
| 33 | { |
||
| 34 | 6 | $this->guzzleConf = $config; |
|
| 35 | 6 | } |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Make a HTTP request and retrieve the body. |
||
| 39 | * @param string $url The URL to request |
||
| 40 | * @return \Psr\Http\Message\StreamInterface |
||
| 41 | */ |
||
| 42 | 12 | public function getMetarAPIResponse($url) |
|
| 48 | } |
||
| 49 | } |
||
| 50 |