1 | <?php |
||
5 | class Address |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | private $street; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $city; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $state; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $zip; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $country; |
||
31 | |||
32 | /** |
||
33 | * @param string $street |
||
34 | * @param string $city |
||
35 | * @param string $state |
||
36 | * @param string $zip |
||
37 | * @param string $country |
||
38 | */ |
||
39 | 18 | public function __construct($street, $city, $state, $zip, $country) |
|
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | 14 | public function getStreet() |
|
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | */ |
||
59 | 14 | public function getCity() |
|
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | 14 | public function getState() |
|
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | 14 | public function getZip() |
|
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | 14 | public function getCountry() |
|
87 | |||
88 | 14 | public function toArray($prefix = '') |
|
114 | } |
||
115 |