Passed
Pull Request — master (#28)
by Manuel
02:43
created

AuthorizeDirectResponse::getPayer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
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\Payer;
8
use Ticketpark\SaferpayJson\Response\Container\PaymentMeans;
9
use Ticketpark\SaferpayJson\Response\Container\RegisterAlias;
10
use Ticketpark\SaferpayJson\Response\Container\Transaction;
11
use Ticketpark\SaferpayJson\Response\Response;
12
13
final class AuthorizeDirectResponse extends Response
14
{
15
    /**
16
     * @var Transaction|null
17
     * @SerializedName("Transaction")
18
     * @Type("Ticketpark\SaferpayJson\Response\Container\Transaction")
19
     */
20
    private $transaction;
21
22
    /**
23
     * @var PaymentMeans|null
24
     * @SerializedName("PaymentMeans")
25
     * @Type("Ticketpark\SaferpayJson\Response\Container\PaymentMeans")
26
     */
27
    private $paymentMeans;
28
29
    /**
30
     * @var RegisterAlias|null
31
     * @SerializedName("RegisterAlias")
32
     * @Type("Ticketpark\SaferpayJson\Response\Container\RegisterAlias")
33
     */
34
    private $registerAlias;
35
36
    /**
37
     * @var Payer|null
38
     * @SerializedName("Payer")
39
     * @Type("Ticketpark\SaferpayJson\Response\Container\Payer")
40
     */
41
    private $payer;
42
43
    public function getTransaction(): ?Transaction
44
    {
45
        return $this->transaction;
46
    }
47
48
    public function getPaymentMeans(): ?PaymentMeans
49
    {
50
        return $this->paymentMeans;
51
    }
52
53
    public function getRegisterAlias(): ?RegisterAlias
54
    {
55
        return $this->registerAlias;
56
    }
57
58
    public function getPayer(): ?Payer
59
    {
60
        return $this->payer;
61
    }
62
}
63