1 | <?php |
||
9 | final class CreateAddress |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $firstName; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $lastName; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $company; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $street; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $countryCode; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $provinceCode; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | private $city; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | private $postcode; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | private $phoneNumber; |
||
55 | |||
56 | /** |
||
57 | * @param $firstName |
||
58 | * @param $lastName |
||
59 | * @param $company |
||
60 | * @param $street |
||
61 | * @param $countryCode |
||
62 | * @param $provinceCode |
||
63 | * @param $city |
||
64 | * @param $postcode |
||
65 | * @param $phoneNumber |
||
66 | */ |
||
67 | public function __construct($firstName, $lastName, $company, $street, $countryCode, $provinceCode, $city, $postcode, $phoneNumber) |
||
92 | |||
93 | /** |
||
94 | * @return string |
||
95 | */ |
||
96 | public function firstName(): string |
||
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | */ |
||
104 | public function lastName(): string |
||
108 | |||
109 | /** |
||
110 | * @return string|null |
||
111 | */ |
||
112 | public function company(): ?string |
||
116 | |||
117 | /** |
||
118 | * @return string |
||
119 | */ |
||
120 | public function street(): string |
||
124 | |||
125 | /** |
||
126 | * @return string |
||
127 | */ |
||
128 | public function countryCode(): string |
||
132 | |||
133 | /** |
||
134 | * @return string|null |
||
135 | */ |
||
136 | public function provinceCode(): ?string |
||
140 | |||
141 | /** |
||
142 | * @return string |
||
143 | */ |
||
144 | public function city(): string |
||
148 | |||
149 | /** |
||
150 | * @return string |
||
151 | */ |
||
152 | public function postcode(): string |
||
156 | |||
157 | /** |
||
158 | * @return string|null |
||
159 | */ |
||
160 | public function phoneNumber(): ?string |
||
164 | } |
||
165 |