| 1 | <?php |
||
| 9 | final class CreateAddress |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Address |
||
| 13 | */ |
||
| 14 | private $address; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $userEmail; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param Address $address |
||
| 23 | * @param string $userEmail |
||
| 24 | */ |
||
| 25 | public function __construct(Address $address, string $userEmail) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function firstName(): string |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function lastName(): string |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string|null |
||
| 49 | */ |
||
| 50 | public function company(): ?string |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function street(): string |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | public function countryCode(): string |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return string|null |
||
| 73 | */ |
||
| 74 | public function provinceCode(): ?string |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | public function city(): string |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @return string |
||
| 89 | */ |
||
| 90 | public function postcode(): string |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @return string|null |
||
| 97 | */ |
||
| 98 | public function phoneNumber(): ?string |
||
| 102 | |||
| 103 | /** |
||
| 104 | * @return string |
||
| 105 | */ |
||
| 106 | public function userEmail(): string |
||
| 110 | } |
||
| 111 |