| Total Complexity | 10 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Coverage | 86.96% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class OrderFixture |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Order |
||
| 12 | */ |
||
| 13 | private $order; |
||
| 14 | |||
| 15 | 20 | public function __construct(Order $order) |
|
| 16 | { |
||
| 17 | 20 | $this->order = $order; |
|
| 18 | 20 | } |
|
| 19 | |||
| 20 | 19 | public function getId(): int |
|
| 21 | { |
||
| 22 | 19 | return (int) $this->order->getEntityId(); |
|
| 23 | } |
||
| 24 | |||
| 25 | 17 | public function getCustomerId(): int |
|
| 26 | { |
||
| 27 | 17 | return (int) $this->order->getCustomerId(); |
|
| 28 | } |
||
| 29 | |||
| 30 | 2 | public function getCustomerEmail(): string |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Obtain `qty_ordered` per order item, indexed with `item_id`. |
||
| 37 | * |
||
| 38 | * @return float[] |
||
| 39 | */ |
||
| 40 | 5 | public function getOrderItemQtys(): array |
|
| 48 | } |
||
| 49 | |||
| 50 | 1 | public function getPaymentMethod(): string |
|
| 57 | } |
||
| 58 | |||
| 59 | 1 | public function getShippingMethod(): string |
|
| 62 | } |
||
| 63 | |||
| 64 | public function rollback(): void |
||
| 69 |