@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * @return \ShippoClient\Entity\TrackingStatus |
17 | 17 | */ |
18 | - public function getTrackingStatus() |
|
18 | + public function getTrackingStatus () |
|
19 | 19 | { |
20 | 20 | return $this->attributes->mayHave('tracking_status') |
21 | 21 | ->asInstanceOf('\\ShippoClient\\Entity\\TrackingStatus'); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | /** |
25 | 25 | * @return \ShippoClient\Entity\TrackingHistory |
26 | 26 | */ |
27 | - public function getTrackingHistory() |
|
27 | + public function getTrackingHistory () |
|
28 | 28 | { |
29 | 29 | $entities = $this->attributes->mayHave('tracking_history') |
30 | 30 | ->asInstanceArray('ShippoClient\\Entity\\TrackingStatus'); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | /** |
36 | 36 | * @return \DateTime |
37 | 37 | */ |
38 | - public function getEta() |
|
38 | + public function getEta () |
|
39 | 39 | { |
40 | 40 | return $this->attributes->mayHave('eta')->asInstanceOf('\\DateTime'); |
41 | 41 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * @return \ShippoClient\Entity\Location |
45 | 45 | */ |
46 | - public function getAddressFrom() |
|
46 | + public function getAddressFrom () |
|
47 | 47 | { |
48 | 48 | return $this->attributes->mayHave('address_from')->asInstanceOf('\\ShippoClient\\Entity\\Location'); |
49 | 49 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * @return \ShippoClient\Entity\Location |
53 | 53 | */ |
54 | - public function getAddressTo() |
|
54 | + public function getAddressTo () |
|
55 | 55 | { |
56 | 56 | return $this->attributes->mayHave('address_to')->asInstanceOf('\\ShippoClient\\Entity\\Location'); |
57 | 57 | } |
@@ -59,12 +59,12 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * @return \ShippoClient\Entity\ServiceLevel |
61 | 61 | */ |
62 | - public function getServiceLevel() |
|
62 | + public function getServiceLevel () |
|
63 | 63 | { |
64 | 64 | return $this->attributes->mayHave('servicelevel')->asInstanceOf('\\ShippoClient\\Entity\\ServiceLevel'); |
65 | 65 | } |
66 | 66 | |
67 | - public function toArray() |
|
67 | + public function toArray () |
|
68 | 68 | { |
69 | 69 | return [ |
70 | 70 | 'carrier' => $this->getCarrier(), |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * |
33 | 33 | * @return string |
34 | 34 | */ |
35 | - public function getObjectStatus() |
|
35 | + public function getObjectStatus () |
|
36 | 36 | { |
37 | 37 | return $this->attributes->mayHave('object_status')->asString(); |
38 | 38 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * |
43 | 43 | * @return bool |
44 | 44 | */ |
45 | - public function getWasTest() |
|
45 | + public function getWasTest () |
|
46 | 46 | { |
47 | 47 | return $this->attributes->mayHave('was_test')->asBoolean(); |
48 | 48 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @return string |
54 | 54 | */ |
55 | - public function getRate() |
|
55 | + public function getRate () |
|
56 | 56 | { |
57 | 57 | return $this->attributes->mayHave('rate')->asString(); |
58 | 58 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @return string |
65 | 65 | */ |
66 | - public function getTrackingNumber() |
|
66 | + public function getTrackingNumber () |
|
67 | 67 | { |
68 | 68 | return $this->attributes->mayHave('tracking_number')->asString(); |
69 | 69 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * |
74 | 74 | * @return TrackingStatus |
75 | 75 | */ |
76 | - public function getTrackingStatus() |
|
76 | + public function getTrackingStatus () |
|
77 | 77 | { |
78 | 78 | return new TrackingStatus($this->attributes->mayHave('tracking_status')->asArray()); |
79 | 79 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * @return TrackingHistory |
83 | 83 | */ |
84 | - public function getTrackingHistory() |
|
84 | + public function getTrackingHistory () |
|
85 | 85 | { |
86 | 86 | $entities = $this->attributes->mayHave('tracking_history') |
87 | 87 | ->asInstanceArray('ShippoClient\\Entity\\TrackingStatus'); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * |
96 | 96 | * @return string |
97 | 97 | */ |
98 | - public function getTrackingUrlProvider() |
|
98 | + public function getTrackingUrlProvider () |
|
99 | 99 | { |
100 | 100 | return $this->attributes->mayHave('tracking_url_provider')->asString(); |
101 | 101 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * |
107 | 107 | * @return string |
108 | 108 | */ |
109 | - public function getLabelUrl() |
|
109 | + public function getLabelUrl () |
|
110 | 110 | { |
111 | 111 | return $this->attributes->mayHave('label_url')->asString(); |
112 | 112 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * |
118 | 118 | * @return string |
119 | 119 | */ |
120 | - public function getCommercialInvoiceUrl() |
|
120 | + public function getCommercialInvoiceUrl () |
|
121 | 121 | { |
122 | 122 | return $this->attributes->mayHave('commercial_invoice_url')->asString(); |
123 | 123 | } |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * |
130 | 130 | * @return array |
131 | 131 | */ |
132 | - public function getMessages() |
|
132 | + public function getMessages () |
|
133 | 133 | { |
134 | 134 | return $this->attributes->mayHave('messages')->asArray(); |
135 | 135 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | /** |
138 | 138 | * @return mixed|null |
139 | 139 | */ |
140 | - public function getOrder() |
|
140 | + public function getOrder () |
|
141 | 141 | { |
142 | 142 | return $this->attributes->mayHave('order')->value(); |
143 | 143 | } |
@@ -145,12 +145,12 @@ discard block |
||
145 | 145 | /** |
146 | 146 | * @return string |
147 | 147 | */ |
148 | - public function getMetadata() |
|
148 | + public function getMetadata () |
|
149 | 149 | { |
150 | 150 | return $this->attributes->mayHave('metadata')->asString(); |
151 | 151 | } |
152 | 152 | |
153 | - public function toArray() |
|
153 | + public function toArray () |
|
154 | 154 | { |
155 | 155 | $array = $this->__toArray(); |
156 | 156 | $array['tracking_status'] = $this->getTrackingStatus()->toArray(); |