| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class ShipmentFixture |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var ShipmentInterface |
||
| 12 | */ |
||
| 13 | private $shipment; |
||
| 14 | |||
| 15 | 6 | public function __construct(ShipmentInterface $shipment) |
|
| 18 | 6 | } |
|
| 19 | |||
| 20 | public function getShipment(): ShipmentInterface |
||
| 21 | { |
||
| 22 | return $this->shipment; |
||
| 23 | } |
||
| 24 | |||
| 25 | 5 | public function getId(): int |
|
| 26 | { |
||
| 27 | 5 | return (int) $this->shipment->getEntityId(); |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return \Magento\Sales\Api\Data\ShipmentTrackInterface[] |
||
| 32 | */ |
||
| 33 | 2 | public function getTracks(): array |
|
| 36 | } |
||
| 37 | |||
| 38 | 2 | public function getShippingLabel(): string |
|
| 41 | } |
||
| 42 | } |
||
| 43 |