| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class CompleteAuthoriseAndCaptureRequest extends AbstractRequest |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * {@inheritdoc} |
||
| 15 | */ |
||
| 16 | 1 | public function getData(): array |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | 1 | public function sendData($data): ResponseInterface |
|
| 29 | { |
||
| 30 | 1 | $this->sendRequest( |
|
| 31 | 1 | Request::METHOD_POST, |
|
| 32 | 1 | sprintf( |
|
| 33 | 1 | '/transaction/%s', |
|
| 34 | 1 | $this->getTransactionReference() |
|
| 35 | ), |
||
| 36 | 1 | $data |
|
| 37 | ); |
||
| 38 | |||
| 39 | 1 | return new CompleteAuthoriseAndCaptureResponse( |
|
| 40 | 1 | $this, |
|
| 41 | 1 | $this->getResponseBody() |
|
| 42 | ); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get the HttpRequest. |
||
| 47 | * |
||
| 48 | * @return Request |
||
| 49 | */ |
||
| 50 | 2 | public function getHttpRequest(): Request |
|
| 53 | } |
||
| 54 | } |
||
| 55 |