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

CustomPlan::getMaximumNumberOfInstallments()   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 0
dl 0
loc 3
rs 10
c 0
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 CustomPlan
9
{
10
    /**
11
     * @var int|null
12
     * @SerializedName("MinimumNumberOfInstallments")
13
     * @Type("int")
14
     */
15
    private $minimumNumberOfInstallments;
16
17
    /**
18
     * @var int|null
19
     * @SerializedName("MaximumNumberOfInstallments")
20
     * @Type("int")
21
     */
22
    private $maximumNumberOfInstallments;
23
24
    /**
25
     * @var string|null
26
     * @SerializedName("InterestRate")
27
     * @Type("string")
28
     */
29
    private $interestRate;
30
31
    /**
32
     * @var Amount|null
33
     * @SerializedName("InstallmentFee")
34
     * @Type("Ticketpark\SaferpayJson\Response\Container\Amount")
35
     */
36
    private $installmentFee;
37
38
    /**
39
     * @var string|null
40
     * @SerializedName("AnnualPercentageRate")
41
     * @Type("string")
42
     */
43
    private $annualPercentageRate;
44
45
    /**
46
     * @var Amount|null
47
     * @SerializedName("TotalAmountDue")
48
     * @Type("Ticketpark\SaferpayJson\Response\Container\Amount")
49
     */
50
    private $totalAmountDue;
51
52
    public function getMinimumNumberOfInstallments(): ?int
53
    {
54
        return $this->minimumNumberOfInstallments;
55
    }
56
57
    public function getMaximumNumberOfInstallments(): ?int
58
    {
59
        return $this->maximumNumberOfInstallments;
60
    }
61
62
    public function getInterestRate(): ?string
63
    {
64
        return $this->interestRate;
65
    }
66
67
    public function getInstallmentFee(): ?Amount
68
    {
69
        return $this->installmentFee;
70
    }
71
72
    public function getAnnualPercentageRate(): ?string
73
    {
74
        return $this->annualPercentageRate;
75
    }
76
77
    public function getTotalAmountDue(): ?Amount
78
    {
79
        return $this->totalAmountDue;
80
    }
81
}
82