1 | <?php |
||
7 | final class CreateAddress |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $firstName; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $lastName; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $company; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $street; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $countryCode; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $provinceCode; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | private $city; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | private $postcode; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | private $phoneNumber; |
||
53 | |||
54 | /** |
||
55 | * @param $firstName |
||
56 | * @param $lastName |
||
57 | * @param $company |
||
58 | * @param $street |
||
59 | * @param $countryCode |
||
60 | * @param $provinceCode |
||
61 | * @param $city |
||
62 | * @param $postcode |
||
63 | * @param $phoneNumber |
||
64 | */ |
||
65 | public function __construct($firstName, $lastName, $company, $street, $countryCode, $provinceCode, $city, $postcode, $phoneNumber) |
||
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | */ |
||
94 | public function firstName(): string |
||
98 | |||
99 | /** |
||
100 | * @return string |
||
101 | */ |
||
102 | public function lastName(): string |
||
106 | |||
107 | /** |
||
108 | * @return string|null |
||
109 | */ |
||
110 | public function company(): ?string |
||
114 | |||
115 | /** |
||
116 | * @return string |
||
117 | */ |
||
118 | public function street(): string |
||
122 | |||
123 | /** |
||
124 | * @return string |
||
125 | */ |
||
126 | public function countryCode(): string |
||
130 | |||
131 | /** |
||
132 | * @return string|null |
||
133 | */ |
||
134 | public function provinceCode(): ?string |
||
138 | |||
139 | /** |
||
140 | * @return string |
||
141 | */ |
||
142 | public function city(): string |
||
146 | |||
147 | /** |
||
148 | * @return string |
||
149 | */ |
||
150 | public function postcode(): string |
||
154 | |||
155 | /** |
||
156 | * @return string|null |
||
157 | */ |
||
158 | public function phoneNumber(): ?string |
||
162 | } |