| 1 | <?php |
||
| 7 | final class ContactAddress |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string Address |
||
| 11 | */ |
||
| 12 | protected $address; |
||
| 13 | /** |
||
| 14 | * @var string Zip code |
||
| 15 | */ |
||
| 16 | protected $zipCode; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string Town |
||
| 20 | */ |
||
| 21 | protected $town; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string Country |
||
| 25 | */ |
||
| 26 | protected $country; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * ContactAddress constructor. |
||
| 30 | * |
||
| 31 | * @param string $address |
||
| 32 | * @param string $zipCode |
||
| 33 | * @param string $town |
||
| 34 | * @param string $country |
||
| 35 | */ |
||
| 36 | public function __construct(string $address, string $zipCode, string $town, string $country) |
||
| 43 | |||
| 44 | public static function fromString(string $address, string $zipCode, string $town, string $country): self |
||
| 48 | |||
| 49 | public function getValue(): string |
||
| 53 | } |
||
| 54 |