Completed
Push — master ( 35e829...731b5b )
by Marco
01:15
created

Response::__construct()   A

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\Heidelpay\Message;
4
5
use Omnipay\Common\Message\AbstractResponse;
6
7
/**
8
 * Response
9
 */
10
class Response extends AbstractResponse
11
{
12
    public function isSuccessful()
13
    {
14
        return isset($this->data['id']);
15
    }
16
17
    public function getTransactionReference()
18
    {
19
        if (isset($this->data['id'])) {
20
            return $this->data['id'];
21
        }
22
    }
23
}
24