CaptureRequest::getData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Omnipay\BillPay\Message;
4
5
use Omnipay\Common\Message\ResponseInterface;
6
use SimpleXMLElement;
7
8
/**
9
 * Message CaptureRequest
10
 *
11
 * @link      https://techdocs.billpay.de/en/For_developers/XML_API/Capture.html
12
 *
13
 * @author    Andreas Lange <[email protected]>
14
 * @copyright 2016, Connox GmbH
15
 * @license   MIT
16
 */
17
class CaptureRequest extends AbstractRequest
18
{
19
    /**
20
     * Get the raw data array for this message. The format of this varies from gateway to
21
     * gateway, but will usually be either an associative array, or a SimpleXMLElement.
22
     *
23
     * @return SimpleXMLElement
24
     */
25 2
    public function getData()
26
    {
27 2
        return $this->getBaseData();
28
    }
29
30
    /**
31
     * @param SimpleXMLElement $response
32
     *
33
     * @return ResponseInterface
34
     */
35 2
    protected function createResponse($response)
36
    {
37 2
        return $this->response = new CaptureResponse($this, $response);
38
    }
39
}
40