Completed
Push — master ( 388f0e...e0ca1a )
by Aimeos
13s queued 11s
created

RefundResponse::getTransactionReference()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Omnipay\Sofort\Message;
6
7
class RefundResponse extends AbstractResponse
8
{
9
    public function isSuccessful()
10
    {
11
        return isset($this->data->refund->status) &&
12
            false === in_array($this->data->refund->status, array('error'));
13
    }
14
15
    public function getTransactionReference()
16
    {
17
        return (string) $this->data->refund->transaction;
18
    }
19
}
20