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

RefundResponse::setTransaction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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