1 | <?php namespace SimpleUPS; |
||
7 | class Shipper extends Model |
||
8 | { |
||
9 | private |
||
10 | /* @var string $number */ |
||
11 | $number, |
||
12 | |||
13 | /* @var InstructionalAddress $address */ |
||
14 | $address; |
||
15 | |||
16 | /** |
||
17 | * @internal |
||
18 | * |
||
19 | * @param InstructionalAddress $address |
||
20 | * |
||
21 | * @return Shipper |
||
22 | */ |
||
23 | public function setAddress(\SimpleUPS\InstructionalAddress $address) |
||
28 | |||
29 | /** |
||
30 | * Get the shipper's address |
||
31 | * @return InstructionalAddress |
||
32 | */ |
||
33 | public function getAddress() |
||
37 | |||
38 | /** |
||
39 | * @internal |
||
40 | * |
||
41 | * @param string $number |
||
42 | * |
||
43 | * @return Shipper |
||
44 | */ |
||
45 | public function setNumber($number) |
||
50 | |||
51 | /** |
||
52 | * Get the shipper UPS account number |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getNumber() |
||
59 | |||
60 | /** |
||
61 | * @internal |
||
62 | * |
||
63 | * @param \DomDocument $dom |
||
64 | * |
||
65 | * @return \DOMElement |
||
66 | */ |
||
67 | public function toXml(\DomDocument $dom) |
||
85 | |||
86 | /** |
||
87 | * @internal |
||
88 | * |
||
89 | * @param \SimpleXMLElement $xml |
||
90 | * |
||
91 | * @return Shipper |
||
92 | */ |
||
93 | public static function fromXml(\SimpleXMLElement $xml) |
||
108 | } |