| 1 | <?php |
||
| 9 | final class CreateAddress |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Address |
||
| 13 | */ |
||
| 14 | private $address; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * CreateAddress constructor. |
||
| 18 | * |
||
| 19 | * @param Address $address |
||
| 20 | */ |
||
| 21 | public function __construct(Address $address) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function firstName(): string |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function lastName(): string |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string|null |
||
| 44 | */ |
||
| 45 | public function company(): ?string |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function street(): string |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function countryCode(): string |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return string|null |
||
| 68 | */ |
||
| 69 | public function provinceCode(): ?string |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | public function city(): string |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @return string |
||
| 84 | */ |
||
| 85 | public function postcode(): string |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @return string|null |
||
| 92 | */ |
||
| 93 | public function phoneNumber(): ?string |
||
| 97 | } |
||
| 98 |