AbstractResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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