CaptureRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 23
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getData() 0 4 1
A createResponse() 0 4 1
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