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

Response   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isSuccessful() 0 4 1
A getTransactionReference() 0 6 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