| Total Complexity | 8 | 
| Total Lines | 95 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 9 | class City  | 
            ||
| 10 | { | 
            ||
| 11 | use Errors;  | 
            ||
| 12 | |||
| 13 | /**  | 
            ||
| 14 | * @var int|null  | 
            ||
| 15 | */  | 
            ||
| 16 | private $id;  | 
            ||
| 17 | /** @var string|null */  | 
            ||
| 18 | private $cityId;  | 
            ||
| 19 | /** @var string|null */  | 
            ||
| 20 | private $cityName;  | 
            ||
| 21 | /** @var string|null */  | 
            ||
| 22 | private $cityTimezone;  | 
            ||
| 23 | /** @var string|null */  | 
            ||
| 24 | private $region;  | 
            ||
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * City constructor.  | 
            ||
| 28 | * @param int|null $id  | 
            ||
| 29 | * @param string|null $cityId  | 
            ||
| 30 | * @param string|null $cityName  | 
            ||
| 31 | * @param string|null $cityTimezone  | 
            ||
| 32 | * @param string|null $region  | 
            ||
| 33 | * @param array|null $errors  | 
            ||
| 34 | */  | 
            ||
| 35 | 1 | public function __construct(?int $id, ?string $cityId, ?string $cityName, ?string $cityTimezone, ?string $region, ?array $errors)  | 
            |
| 36 |     { | 
            ||
| 37 | 1 | $this->id = $id;  | 
            |
| 38 | 1 | $this->cityId = $cityId;  | 
            |
| 39 | 1 | $this->cityName = $cityName;  | 
            |
| 40 | 1 | $this->cityTimezone = $cityTimezone;  | 
            |
| 41 | 1 | $this->region = $region;  | 
            |
| 42 | 1 | $this->errors = $errors;  | 
            |
| 43 | 1 | }  | 
            |
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * @param array $data  | 
            ||
| 47 | * @return self  | 
            ||
| 48 | */  | 
            ||
| 49 | 1 | public static function fromResponseData(array $data): self  | 
            |
| 63 | );  | 
            ||
| 64 | }  | 
            ||
| 65 | |||
| 66 | /**  | 
            ||
| 67 | * @return int|null  | 
            ||
| 68 | */  | 
            ||
| 69 | 1 | public function getId(): ?int  | 
            |
| 70 |     { | 
            ||
| 71 | 1 | return $this->id;  | 
            |
| 72 | }  | 
            ||
| 73 | |||
| 74 | /**  | 
            ||
| 75 | * @return string|null  | 
            ||
| 76 | */  | 
            ||
| 77 | 1 | public function getCityId(): ?string  | 
            |
| 78 |     { | 
            ||
| 79 | 1 | return $this->cityId;  | 
            |
| 80 | }  | 
            ||
| 81 | |||
| 82 | /**  | 
            ||
| 83 | * @return string|null  | 
            ||
| 84 | */  | 
            ||
| 85 | 1 | public function getCityName(): ?string  | 
            |
| 86 |     { | 
            ||
| 87 | 1 | return $this->cityName;  | 
            |
| 88 | }  | 
            ||
| 89 | |||
| 90 | /**  | 
            ||
| 91 | * @return string|null  | 
            ||
| 92 | */  | 
            ||
| 93 | 1 | public function getCityTimezone(): ?string  | 
            |
| 94 |     { | 
            ||
| 95 | 1 | return $this->cityTimezone;  | 
            |
| 96 | }  | 
            ||
| 97 | |||
| 98 | /**  | 
            ||
| 99 | * @return string|null  | 
            ||
| 100 | */  | 
            ||
| 101 | 1 | public function getRegion(): ?string  | 
            |
| 104 | }  | 
            ||
| 105 | |||
| 106 | |||
| 107 | }  |