| 1 | <?php |
||
| 8 | class Weather |
||
| 9 | { |
||
| 10 | protected $url = 'api.openweathermap.org/data/2.5/weather'; |
||
| 11 | |||
| 12 | protected $units; |
||
| 13 | |||
| 14 | protected $language; |
||
| 15 | |||
| 16 | protected $client; |
||
| 17 | |||
| 18 | public function get(string $city): StreamInterface |
||
| 22 | |||
| 23 | public function find($id): StreamInterface |
||
| 27 | |||
| 28 | public function query(array $search): StreamInterface |
||
| 32 | |||
| 33 | protected function queryParameters(array $search): string |
||
| 37 | |||
| 38 | public function getOptions(): array |
||
| 46 | |||
| 47 | public function inUnits(string $units): self |
||
| 53 | |||
| 54 | public function inLanguage(string $language): self |
||
| 60 | |||
| 61 | protected function client(): Client |
||
| 65 | |||
| 66 | public function using(Client $client): self |
||
| 72 | } |
||
| 73 |