| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | public function allowed(): array |
||
| 10 | { |
||
| 11 | return [ |
||
| 12 | 'type' => 'string', // Can be: "card", "stored_card", "credit", "manual_card", "manual_cash", "manual_cheque", "manual_transfer", "arrival" or "invoice" |
||
| 13 | 'customer' => 'float', // The amount of payment being made. |
||
| 14 | 'card' => 'object:Card', // The card being used to make payment. Required if type is "card". |
||
| 15 | ]; |
||
| 18 |