1 | <?php namespace SimpleUPS\Track\SmallPackage; |
||
9 | class Activity extends \SimpleUPS\Model |
||
10 | { |
||
11 | private |
||
12 | /* @var \SimpleUPS\Address $address */ |
||
13 | $address, |
||
14 | /* @var string $locationCode */ |
||
15 | $locationCode, |
||
16 | |||
17 | /* @var string $locationDescription */ |
||
18 | $locationDescription, |
||
19 | /* @var string $signedForBy */ |
||
20 | $signedForBy, |
||
21 | |||
22 | /* @var StatusType $statusType */ |
||
23 | $statusType, |
||
24 | /* @var string $statusCode */ |
||
25 | $statusCode, |
||
26 | |||
27 | /* @var \DateTime $timestamp */ |
||
28 | $timestamp; |
||
29 | |||
30 | /** |
||
31 | * @internal |
||
32 | * |
||
33 | * @param \SimpleUPS\Address $address |
||
34 | * |
||
35 | * @return Activity |
||
36 | */ |
||
37 | public function setAddress(Address $address) |
||
42 | |||
43 | /** |
||
44 | * Location for this activity |
||
45 | * @return \SimpleUPS\Address |
||
46 | */ |
||
47 | public function getAddress() |
||
51 | |||
52 | /** |
||
53 | * @internal |
||
54 | * |
||
55 | * @param string $statusCode |
||
56 | * |
||
57 | * @return Activity |
||
58 | */ |
||
59 | public function setStatusCode($statusCode) |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getStatusCode() |
||
72 | |||
73 | /** |
||
74 | * @internal |
||
75 | * |
||
76 | * @param StatusType $statusType |
||
77 | * |
||
78 | * @return Activity |
||
79 | */ |
||
80 | public function setStatusType(StatusType $statusType) |
||
85 | |||
86 | /** |
||
87 | * Status type of an activity |
||
88 | * @return StatusType |
||
89 | */ |
||
90 | public function getStatusType() |
||
94 | |||
95 | /** |
||
96 | * @internal |
||
97 | * |
||
98 | * @param \DateTime $timestamp |
||
99 | * |
||
100 | * @return Activity |
||
101 | */ |
||
102 | public function setTimestamp(\DateTime $timestamp) |
||
107 | |||
108 | /** |
||
109 | * When activity took place |
||
110 | * @return \DateTime |
||
111 | */ |
||
112 | public function getTimestamp() |
||
116 | |||
117 | /** |
||
118 | * @internal |
||
119 | * |
||
120 | * @param string $locationCode |
||
121 | * |
||
122 | * @return Activity |
||
123 | */ |
||
124 | public function setLocationCode($locationCode) |
||
129 | |||
130 | /** |
||
131 | * @return string |
||
132 | */ |
||
133 | public function getLocationCode() |
||
137 | |||
138 | /** |
||
139 | * @internal |
||
140 | * |
||
141 | * @param string $locationDescription |
||
142 | * |
||
143 | * @return Activity |
||
144 | */ |
||
145 | public function setLocationDescription($locationDescription) |
||
150 | |||
151 | /** |
||
152 | * @return string |
||
153 | */ |
||
154 | public function getLocationDescription() |
||
158 | |||
159 | /** |
||
160 | * @internal |
||
161 | * |
||
162 | * @param string $signedForBy |
||
163 | * |
||
164 | * @return Activity |
||
165 | */ |
||
166 | public function setSignedForBy($signedForBy) |
||
171 | |||
172 | /** |
||
173 | * Name of the person who signed |
||
174 | * @return string|null |
||
175 | */ |
||
176 | public function getSignedForBy() |
||
180 | |||
181 | /** |
||
182 | * @internal |
||
183 | * |
||
184 | * @param \SimpleXMLElement $xml |
||
185 | * |
||
186 | * @return Activity |
||
187 | */ |
||
188 | public static function fromXml(\SimpleXMLElement $xml) |
||
223 | } |