File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
app/code/Magento/Shipping/Controller/Adminhtml/Order Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 27
27
* @method ShipmentLoader setTracking($tracking)
28
28
* @method int getOrderId()
29
29
* @method int getShipmentId()
30
+ * @method array|null getShipment()
30
31
* @method array getTracking()
31
32
*/
32
33
class ShipmentLoader extends DataObject
33
34
{
34
- const SHIPMENT = 'shipment ' ;
35
-
36
35
/**
37
36
* @var ManagerInterface
38
37
*/
@@ -136,7 +135,7 @@ public function load()
136
135
return false ;
137
136
}
138
137
139
- $ shipmentItems = $ this ->getShipmentItems ($ this ->getShipment ());
138
+ $ shipmentItems = $ this ->getShipmentItems (( array ) $ this ->getShipment ());
140
139
141
140
$ shipment = $ this ->documentFactory ->create (
142
141
$ order ,
@@ -195,14 +194,4 @@ private function getShipmentItems(array $shipmentData)
195
194
}
196
195
return $ shipmentItems ;
197
196
}
198
-
199
- /**
200
- * Retrieve shipment.
201
- *
202
- * @return array
203
- */
204
- public function getShipment ()
205
- {
206
- return $ this ->getData (self ::SHIPMENT ) ?: [];
207
- }
208
197
}
You can’t perform that action at this time.
0 commit comments