1 | <?php namespace SimpleUPS; |
||
8 | class InstructionalAddress extends Address |
||
9 | { |
||
10 | private |
||
11 | /* @var string $addressee */ |
||
12 | $addressee, |
||
13 | |||
14 | /* @var string $addressLine2 */ |
||
15 | $addressLine2, |
||
16 | |||
17 | /* @var string $addressLine3 */ |
||
18 | $addressLine3, |
||
19 | |||
20 | /* @var bool $isResidential */ |
||
21 | $isResidential = false; |
||
22 | |||
23 | /** |
||
24 | * Name of the addressee |
||
25 | * |
||
26 | * @param string $addressee |
||
27 | * |
||
28 | * @return InstructionalAddress |
||
29 | */ |
||
30 | public function setAddressee($addressee) |
||
35 | |||
36 | /** |
||
37 | * Name of the addressee |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getAddressee() |
||
44 | |||
45 | /** |
||
46 | * Additional address information, preferably room or floor |
||
47 | * |
||
48 | * @param string $addressLine2 |
||
49 | * |
||
50 | * @return InstructionalAddress |
||
51 | */ |
||
52 | public function setAddressLine2($addressLine2) |
||
57 | |||
58 | /** |
||
59 | * Additional address information, preferably room or floor |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getAddressLine2() |
||
66 | |||
67 | /** |
||
68 | * Additional address information, preferably department name |
||
69 | * |
||
70 | * @param string $addressLine3 |
||
71 | * |
||
72 | * @return InstructionalAddress |
||
73 | */ |
||
74 | public function setAddressLine3($addressLine3) |
||
79 | |||
80 | /** |
||
81 | * Additional address information, preferably department name |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getAddressLine3() |
||
88 | |||
89 | /** |
||
90 | * Define if this address is residential |
||
91 | * |
||
92 | * @param $isResidential |
||
93 | * |
||
94 | * @return InstructionalAddress |
||
95 | */ |
||
96 | public function setIsResidential($isResidential) |
||
101 | |||
102 | /** |
||
103 | * @internal |
||
104 | * @return bool |
||
105 | */ |
||
106 | public function isResidential() |
||
110 | |||
111 | /** |
||
112 | * @internal |
||
113 | * |
||
114 | * @param \DomDocument $dom |
||
115 | * |
||
116 | * @return \DOMElement |
||
117 | */ |
||
118 | public function toXml(\DomDocument $dom) |
||
161 | |||
162 | /** |
||
163 | * Create an address from XML. SimpleXMLElement passed must have immediate children like AddressLine1, City, etc. |
||
164 | * @internal |
||
165 | * |
||
166 | * @param \SimpleXMLElement $xml |
||
167 | * |
||
168 | * @return \SimpleUPS\InstructionalAddress |
||
169 | */ |
||
170 | public static function fromXml(\SimpleXMLElement $xml) |
||
207 | } |