AbstractResponse   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 21
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getRedirectMethod() 0 4 1
A getRedirectData() 0 3 1
A getRedirectUrl() 0 3 1
1
<?php
2
3
namespace Omnipay\Sofort\Message;
4
5
use Omnipay\Common\Message\RequestInterface;
6
7
abstract class AbstractResponse extends \Omnipay\Common\Message\AbstractResponse
8
{
9
    public function __construct(RequestInterface $request, $response)
10
    {
11
        parent::__construct($request, $response);
12
        $this->data = simplexml_load_string($response->getBody()->getContents());
13
    }
14
15
    public function getRedirectMethod()
16
    {
17
        return 'GET';
18
    }
19
20
    public function getRedirectData()
21
    {
22
    }
23
24
    public function getRedirectUrl()
25
    {
26
    }
27
}
28