@@ -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 | { |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use Marek\OpenWeatherMap\API\Exception\ExceptionThrower; |
| 10 | 10 | use Marek\OpenWeatherMap\Factory\UrlFactory; |
| 11 | 11 | use Marek\OpenWeatherMap\Http\Client\HttpClientInterface; |
| 12 | -use Marek\OpenWeatherMap\Hydrator\HydratorInterface; |
|
| 13 | 12 | use Marek\OpenWeatherMap\Denormalizer\DenormalizerInterface; |
| 14 | 13 | |
| 15 | 14 | abstract class Base |
@@ -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]}"); |