| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| 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) |
|
| 16 | { |
||
| 17 | 6 | $this->shipment = $shipment; |
|
| 18 | 6 | } |
|
| 19 | |||
| 20 | 5 | public function getId(): int |
|
| 21 | { |
||
| 22 | 5 | return (int) $this->shipment->getEntityId(); |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return \Magento\Sales\Api\Data\ShipmentTrackInterface[] |
||
| 27 | */ |
||
| 28 | 2 | public function getTracks(): array |
|
| 31 | } |
||
| 32 | |||
| 33 | 2 | public function getShippingLabel(): string |
|
| 36 | } |
||
| 37 | } |
||
| 38 |