| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 11 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 27 | public function create(ShipmentInterface $shipment, string $locale): ShipmentView  | 
            ||
| 28 |     { | 
            ||
| 29 | /** @var OrderInterface $order */  | 
            ||
| 30 | $order = $shipment->getOrder();  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 31 | |||
| 32 | /** @var ShipmentView $shipmentView */  | 
            ||
| 33 | $shipmentView = new $this->shipmentViewClass();  | 
            ||
| 34 | $shipmentView->state = $shipment->getState();  | 
            ||
| 35 | $shipmentView->method = $this->shippingMethodViewFactory->create($shipment, $locale);  | 
            ||
| 36 | |||
| 37 | return $shipmentView;  | 
            ||
| 38 | }  | 
            ||
| 40 |