1 | <?php |
||
18 | class GenericAddress implements \EEI_Address { |
||
19 | |||
20 | private $_address = ''; |
||
21 | |||
22 | private $_address2 = ''; |
||
23 | |||
24 | private $_city = ''; |
||
25 | |||
26 | private $_state_ID = ''; |
||
27 | |||
28 | private $_state_obj = ''; |
||
29 | |||
30 | private $_zip = ''; |
||
31 | |||
32 | private $_country_ID = ''; |
||
33 | |||
34 | private $_country_obj = ''; |
||
35 | |||
36 | |||
37 | |||
38 | /** |
||
39 | * @param string $address |
||
40 | * @param string $address2 |
||
41 | * @param string $city |
||
42 | * @param \EE_State | string $state |
||
43 | * @param string $zip |
||
44 | * @param \EE_Country | string $country |
||
45 | * @return GenericAddress |
||
|
|||
46 | */ |
||
47 | public function __construct( $address, $address2, $city, $state, $zip, $country ) { |
||
65 | |||
66 | |||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function address() { |
||
74 | |||
75 | |||
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | public function address2() { |
||
83 | |||
84 | |||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function city() { |
||
92 | |||
93 | |||
94 | |||
95 | /** |
||
96 | * @return \EE_State |
||
97 | */ |
||
98 | private function _get_state_obj() { |
||
103 | |||
104 | |||
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | public function state_ID() { |
||
112 | |||
113 | |||
114 | |||
115 | /** |
||
116 | * @return string |
||
117 | */ |
||
118 | public function state_abbrev() { |
||
123 | |||
124 | |||
125 | |||
126 | /** |
||
127 | * @return string |
||
128 | */ |
||
129 | public function state_name() { |
||
134 | |||
135 | |||
136 | |||
137 | /** |
||
138 | * @return \EE_State |
||
139 | */ |
||
140 | public function state_obj() { |
||
143 | |||
144 | |||
145 | |||
146 | /** |
||
147 | * @return string |
||
148 | */ |
||
149 | public function state() { |
||
156 | |||
157 | |||
158 | |||
159 | /** |
||
160 | * @return \EE_Country |
||
161 | */ |
||
162 | private function _get_country_obj() { |
||
167 | |||
168 | |||
169 | |||
170 | /** |
||
171 | * @return string |
||
172 | */ |
||
173 | public function country_ID() { |
||
176 | |||
177 | |||
178 | |||
179 | /** |
||
180 | * @return string |
||
181 | */ |
||
182 | public function country_name() { |
||
187 | |||
188 | |||
189 | |||
190 | /** |
||
191 | * @return \EE_Country |
||
192 | */ |
||
193 | public function country_obj() { |
||
196 | |||
197 | |||
198 | |||
199 | /** |
||
200 | * @return string |
||
201 | */ |
||
202 | public function country() { |
||
209 | |||
210 | |||
211 | |||
212 | /** |
||
213 | * @return string |
||
214 | */ |
||
215 | public function zip() { |
||
218 | |||
219 | } |
||
220 | // End of file GenericAddress.php |
||
221 | // Location: core/entities/GenericAddress.php |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.