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

InstallmentPlan   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 84
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 15
dl 0
loc 84
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getAnnualPercentageRate() 0 3 1
A getInstallmentFee() 0 3 1
A getSubsequentInstallmentAmount() 0 3 1
A getFirstInstallmentAmount() 0 3 1
A getInterestRate() 0 3 1
A getNumberOfInstallments() 0 3 1
A getTotalAmountDue() 0 3 1
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 InstallmentPlan
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