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

ChosenPlan::getInterestRate()   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\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
8
final class ChosenPlan
9
{
10
    /**
11
     * @var int|null
12
     * @SerializedName("NumberOfInstallments")
13
     * @Type("int")
14
     */
15
    private $numberOfInstallments;
16
17
    /**
18
     * @var string|null
19
     * @SerializedName("InterestRate")
20
     * @Type("string")
21
     */
22
    private $interestRate;
23
24
    /**
25
     * @var Amount|null
26
     * @SerializedName("InstallmentFee")
27
     * @Type("Ticketpark\SaferpayJson\Response\Container\Amount")
28
     */
29
    private $installmentFee;
30
31
    /**
32
     * @var string|null
33
     * @SerializedName("AnnualPercentageRate")
34
     * @Type("string")
35
     */
36
    private $annualPercentageRate;
37
38
    /**
39
     * @var Amount|null
40
     * @SerializedName("FirstInstallmentAmount")
41
     * @Type("Ticketpark\SaferpayJson\Response\Container\Amount")
42
     */
43
    private $firstInstallmentAmount;
44
45
    /**
46
     * @var Amount|null
47
     * @SerializedName("SubsequentInstallmentAmount")
48
     * @Type("Ticketpark\SaferpayJson\Response\Container\Amount")
49
     */
50
    private $subsequentInstallmentAmount;
51
52
    /**
53
     * @var Amount|null
54
     * @SerializedName("TotalAmountDue")
55
     * @Type("Ticketpark\SaferpayJson\Response\Container\Amount")
56
     */
57
    private $totalAmountDue;
58
59
    public function getNumberOfInstallments(): ?int
60
    {
61
        return $this->numberOfInstallments;
62
    }
63
64
    public function getInterestRate(): ?string
65
    {
66
        return $this->interestRate;
67
    }
68
69
    public function getInstallmentFee(): ?Amount
70
    {
71
        return $this->installmentFee;
72
    }
73
74
    public function getAnnualPercentageRate(): ?string
75
    {
76
        return $this->annualPercentageRate;
77
    }
78
79
    public function getFirstInstallmentAmount(): ?Amount
80
    {
81
        return $this->firstInstallmentAmount;
82
    }
83
84
    public function getSubsequentInstallmentAmount(): ?Amount
85
    {
86
        return $this->subsequentInstallmentAmount;
87
    }
88
89
    public function getTotalAmountDue(): ?Amount
90
    {
91
        return $this->totalAmountDue;
92
    }
93
}
94