Total Complexity | 10 |
Total Lines | 115 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class Address |
||
17 | { |
||
18 | /** @var string|null */ |
||
19 | private $street; |
||
20 | |||
21 | /** @var string|null */ |
||
22 | private $building_no; |
||
23 | |||
24 | /** @var string|null */ |
||
25 | private $city; |
||
26 | |||
27 | /** @var string|null */ |
||
28 | private $postal_code; |
||
29 | |||
30 | /** @var string|null */ |
||
31 | private $country; |
||
32 | |||
33 | /** |
||
34 | * @return null|string |
||
35 | */ |
||
36 | public function getStreet(): ?string |
||
37 | { |
||
38 | return $this->street; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param null|string $street |
||
43 | * |
||
44 | * @return Address |
||
45 | */ |
||
46 | public function setStreet(?string $street): Address |
||
47 | { |
||
48 | $this->street = $street; |
||
49 | |||
50 | return $this; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return null|string |
||
55 | */ |
||
56 | public function getBuildingNo(): ?string |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @param null|string $building_no |
||
63 | * |
||
64 | * @return Address |
||
65 | */ |
||
66 | public function setBuildingNo(?string $building_no): Address |
||
67 | { |
||
68 | $this->building_no = $building_no; |
||
69 | |||
70 | return $this; |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * @return null|string |
||
75 | */ |
||
76 | public function getCity(): ?string |
||
77 | { |
||
78 | return $this->city; |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * @param null|string $city |
||
83 | * |
||
84 | * @return Address |
||
85 | */ |
||
86 | public function setCity(?string $city): Address |
||
87 | { |
||
88 | $this->city = $city; |
||
89 | |||
90 | return $this; |
||
91 | } |
||
92 | |||
93 | /** |
||
94 | * @return null|string |
||
95 | */ |
||
96 | public function getPostalCode(): ?string |
||
97 | { |
||
98 | return $this->postal_code; |
||
99 | } |
||
100 | |||
101 | /** |
||
102 | * @param null|string $postal_code |
||
103 | * |
||
104 | * @return Address |
||
105 | */ |
||
106 | public function setPostalCode(?string $postal_code): Address |
||
111 | } |
||
112 | |||
113 | /** |
||
114 | * @return null|string |
||
115 | */ |
||
116 | public function getCountry(): ?string |
||
117 | { |
||
118 | return $this->country; |
||
119 | } |
||
120 | |||
121 | /** |
||
122 | * @param null|string $country |
||
123 | * |
||
124 | * @return Address |
||
125 | */ |
||
126 | public function setCountry(?string $country): Address |
||
131 | } |
||
132 | } |
||
133 |