1 | <?php |
||
5 | trait AddressTrait |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | private $firstName; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $lastName; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $address; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $city; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $postalCode; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $country; |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | 9 | public function getFirstName() : ?string |
|
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | 9 | public function getLastName() : ?string |
|
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | 9 | public function getAddress() : ?string |
|
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | 9 | public function getCity() : ?string |
|
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | 9 | public function getPostalCode() : ?string |
|
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | 9 | public function getCountry() : ?string |
|
84 | |||
85 | /** |
||
86 | * @param \SimpleXMLElement $xml |
||
87 | */ |
||
88 | 33 | public function hydrateAddress(\SimpleXMLElement $xml) |
|
97 | } |
||
98 |