| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | final class ContactAddress |
||
| 17 | { |
||
| 18 | private string $address; |
||
| 19 | private string $zipCode; |
||
| 20 | private string $town; |
||
| 21 | private string $country; |
||
| 22 | |||
| 23 | public function __construct(string $address, string $zipCode, string $town, string $country) |
||
| 24 | { |
||
| 25 | $this->address = $address; |
||
| 26 | $this->zipCode = $zipCode; |
||
| 27 | $this->town = $town; |
||
| 28 | $this->country = $country; |
||
| 29 | } |
||
| 30 | |||
| 31 | public static function fromString(string $address, string $zipCode, string $town, string $country): self |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getValue(): string |
||
| 39 | } |
||
| 40 | } |
||
| 41 |