@@ -40,7 +40,6 @@ |
||
| 40 | 40 | * @param HttpClientInterface $client |
| 41 | 41 | * @param UrlFactory $factory |
| 42 | 42 | * @param HandlerInterface $handler |
| 43 | - * @param \Marek\OpenWeatherMap\Denormalizer\DenormalizerInterface $hydrator |
|
| 44 | 43 | */ |
| 45 | 44 | public function __construct(HttpClientInterface $client, UrlFactory $factory, HandlerInterface $handler, DenormalizerInterface $denormalizer) |
| 46 | 45 | { |
@@ -37,6 +37,9 @@ |
||
| 37 | 37 | |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $key |
|
| 42 | + */ |
|
| 40 | 43 | protected function getDateTimeFromTimestamp($key, $data) |
| 41 | 44 | { |
| 42 | 45 | return empty($data[$key]) ? null : new \DateTimeImmutable("@{$data[$key]}"); |