InstallmentPlan::getInterestRate()   A
last analyzed

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