Completed
Push — master ( 90ad1a...d4b41d )
by Bryan
10:33
created

WeatherGov::current()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
nc 1
cc 1
eloc 1
nop 2
1
<?php
2
namespace Bhhaskin\WeatherBee\Backend;
3
4
use Bhhaskin\WeatherBee\Backend\Backend;
5
use Bhhaskin\WeatherBee\Util\{City, Temperature, Unit, Weather, Wind};
6
use Bhhaskin\WeatherBee\Exception\{LocationNotFound, BackendError};
7
use GuzzleHttp\Client;
8
9
/**
10
 * Weather.gov backend class
11
 */
12
class WeatherGov extends Backend
13
{
14
15
    public $client;
16
17
    public function __construct()
18
    {
19
        $this->client = new Client([
20
            'base_uri' => 'https://api.weather.gov/',
21
            'headers' => [
22
                'User-Agent' => parent::USERAGENT,
23
                'Accept'     => 'application/geo+json',
24
            ],
25
            'http_errors' => false
26
        ]);
27
    }
28
29
    public function current(float $lat, float $lng)
30
    {
31
32
    }
33
34
    public function forcast(float $lat, float $lng)
35
    {
36
37
    }
38
39
}
40