Passed
Pull Request — master (#28)
by Manuel
09:19
created

RefundResponse   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getTransaction() 0 3 1
A getDcc() 0 3 1
A getPaymentMeans() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Response\Transaction;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
use Ticketpark\SaferpayJson\Response\Container\Dcc;
8
use Ticketpark\SaferpayJson\Response\Container\PaymentMeans;
9
use Ticketpark\SaferpayJson\Response\Container\Transaction;
10
use Ticketpark\SaferpayJson\Response\Response;
11
12
final class RefundResponse extends Response
13
{
14
    /**
15
     * @var Transaction
16
     * @SerializedName("Transaction")
17
     * @Type("Ticketpark\SaferpayJson\Response\Container\Transaction")
18
     */
19
    private $transaction;
20
21
    /**
22
     * @var PaymentMeans
23
     * @SerializedName("PaymentMeans")
24
     * @Type("Ticketpark\SaferpayJson\Response\Container\PaymentMeans")
25
     */
26
    private $paymentMeans;
27
28
    /**
29
     * @var Dcc
30
     * @SerializedName("Dcc")
31
     * @Type("Ticketpark\SaferpayJson\Response\Container\Dcc")
32
     */
33
    private $dcc;
34
35
    public function getTransaction(): ?Transaction
36
    {
37
        return $this->transaction;
38
    }
39
40
    public function getPaymentMeans(): ?PaymentMeans
41
    {
42
        return $this->paymentMeans;
43
    }
44
45
    public function getDcc(): ?Dcc
46
    {
47
        return $this->dcc;
48
    }
49
}
50