@@ 24-45 (lines=22) @@ | ||
21 | /** |
|
22 | * @param \stdClass|null $response |
|
23 | */ |
|
24 | public function __construct(\stdClass $response = null) |
|
25 | { |
|
26 | parent::__construct($response); |
|
27 | ||
28 | if (null !== $response) { |
|
29 | if (isset($response->Time)) { |
|
30 | $this->Time = $response->Time; |
|
31 | } |
|
32 | if (isset($response->PickupDate)) { |
|
33 | $this->PickupDate = $response->PickupDate; |
|
34 | } |
|
35 | if (isset($response->PickupTime)) { |
|
36 | $this->PickupTime = $response->PickupTime; |
|
37 | } |
|
38 | if (isset($response->DelayCount)) { |
|
39 | $this->DelayCount = $response->DelayCount; |
|
40 | } |
|
41 | if (isset($response->Date)) { |
|
42 | $this->Date = $response->Date; |
|
43 | } |
|
44 | } |
|
45 | } |
|
46 | ||
47 | /** |
|
48 | * @return mixed |
@@ 40-61 (lines=22) @@ | ||
37 | /** |
|
38 | * @param \stdClass|null $response |
|
39 | */ |
|
40 | public function __construct(\stdClass $response = null) |
|
41 | { |
|
42 | $this->ServiceSummary = []; |
|
43 | ||
44 | if (null !== $response) { |
|
45 | if (isset($response->PickupDate)) { |
|
46 | $this->PickupDate = $response->PickupDate; |
|
47 | } |
|
48 | if (isset($response->DocumentsOnlyIndicator)) { |
|
49 | $this->DocumentsOnlyIndicator = $response->DocumentsOnlyIndicator; |
|
50 | } |
|
51 | if (isset($response->AutoDutyCode)) { |
|
52 | $this->AutoDutyCode = $response->AutoDutyCode; |
|
53 | } |
|
54 | if (isset($response->Disclaimer)) { |
|
55 | $this->Disclaimer = $response->Disclaimer; |
|
56 | } |
|
57 | if (isset($response->ServiceSummary)) { |
|
58 | $this->ServiceSummary = new ServiceSummary($response->ServiceSummary); |
|
59 | } |
|
60 | } |
|
61 | } |
|
62 | } |
|
63 |