| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Ntholenaar\MultiSafepayClient\Api; |
||
| 35 | public function createDirectOrder(array $params) |
||
| 36 | { |
||
| 37 | $params['type'] = 'direct'; |
||
| 38 | |||
| 39 | if (!array_key_exists('gateway', $params)) { |
||
| 40 | throw new \InvalidArgumentException('Invalid data provided.'); |
||
| 41 | } |
||
| 42 | |||
| 43 | return $this->create($params); |
||
| 44 | } |
||
| 45 | |||
| 67 |