| Total Complexity | 7 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class Address |
||
| 7 | { |
||
| 8 | private ?string $street; |
||
| 9 | private ?string $houseNumber; |
||
| 10 | private ?string $houseNumberAddition; |
||
| 11 | private ?string $zipCode; |
||
| 12 | private ?string $city; |
||
| 13 | private ?string $country; |
||
| 14 | |||
| 15 | public static function createFromResponse(\stdClass $response): self |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getStreet(): ?string |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getHouseNumber(): ?string |
||
| 35 | { |
||
| 36 | return $this->houseNumber; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getHouseNumberAddition(): ?string |
||
| 40 | { |
||
| 41 | return $this->houseNumberAddition; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getZipCode(): ?string |
||
| 45 | { |
||
| 46 | return $this->zipCode; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getCity(): ?string |
||
| 50 | { |
||
| 51 | return $this->city; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function getCountry(): ?string |
||
| 57 | } |
||
| 58 | } |
||
| 59 |