Completed
Push — master ( 390b51...0e9cfd )
by Mario
11:43
created

AirPollutionDenormalizer::denormalize()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
rs 10
cc 2
nc 2
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Marek\OpenWeatherMap\Denormalizer;
6
7
use Marek\OpenWeatherMap\API\Value\Response\AirPollution\AirPollution;
8
use Marek\OpenWeatherMap\API\Value\Response\APIResponse;
9
10
class AirPollutionDenormalizer extends AbstractDenormalizer
11
{
12
    public function denormalize(array $data, APIResponse $response): APIResponse
13
    {
14
        if ($response instanceof AirPollution) {
15
            return $response;
16
        }
17
18
19
    }
20
}
21