| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | class PaymentService extends AbstractHyperwalletService |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @return ListResponse |
||
| 18 | * |
||
| 19 | * @throws HyperwalletApiException |
||
| 20 | */ |
||
| 21 | public function list(): ListResponse |
||
| 22 | { |
||
| 23 | return $this->client->listPayments(); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param array $paymentDetails |
||
| 28 | * @return Payment | Exception |
||
| 29 | */ |
||
| 30 | public function create(array $paymentDetails) |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $paymentToken |
||
| 42 | * @return Exception|Payment |
||
| 43 | */ |
||
| 44 | public function get(string $paymentToken) |
||
| 53 |