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

AirPollutionDenormalizer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 11
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A denormalize() 0 8 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