| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function allowed(): array |
||
| 20 | { |
||
| 21 | return [ |
||
| 22 | 'id' => 'int', // The unique id for the purchase object. |
||
| 23 | 'price' => 'float', // The basket purchase subtotal. |
||
| 24 | 'discount' => 'float', // The total discount value of the basket purchase. |
||
| 25 | 'fee' => 'float', // The fee value of the basket purchase. |
||
| 26 | 'tax' => 'float', // The tax value of the basket purchase. |
||
| 27 | 'total' => 'float', // The total for the basket. |
||
| 28 | 'total_quantity' => 'int', // The total quantity of the purchase. |
||
| 29 | 'gift_voucher' => 'GiftVoucher', // The gift voucher object |
||
| 30 | 'gift_email' => 'string', // Gift email for the purchase |
||
| 31 | 'gift_message' => 'string', // Gift message for the purchase |
||
| 32 | ]; |
||
| 36 |