CustomPlan   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 72
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 72
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getMaximumNumberOfInstallments() 0 3 1
A getTotalAmountDue() 0 3 1
A getInstallmentFee() 0 3 1
A getInterestRate() 0 3 1
A getAnnualPercentageRate() 0 3 1
A getMinimumNumberOfInstallments() 0 3 1
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 CustomPlan
11
{
12
    /**
13
     * @var int|null
14
     * @SerializedName("MinimumNumberOfInstallments")
15
     * @Type("int")
16
     */
17
    private $minimumNumberOfInstallments;
18
19
    /**
20
     * @var int|null
21
     * @SerializedName("MaximumNumberOfInstallments")
22
     * @Type("int")
23
     */
24
    private $maximumNumberOfInstallments;
25
26
    /**
27
     * @var string|null
28
     * @SerializedName("InterestRate")
29
     * @Type("string")
30
     */
31
    private $interestRate;
32
33
    /**
34
     * @var Amount|null
35
     * @SerializedName("InstallmentFee")
36
     * @Type("Ticketpark\SaferpayJson\Response\Container\Amount")
37
     */
38
    private $installmentFee;
39
40
    /**
41
     * @var string|null
42
     * @SerializedName("AnnualPercentageRate")
43
     * @Type("string")
44
     */
45
    private $annualPercentageRate;
46
47
    /**
48
     * @var Amount|null
49
     * @SerializedName("TotalAmountDue")
50
     * @Type("Ticketpark\SaferpayJson\Response\Container\Amount")
51
     */
52
    private $totalAmountDue;
53
54
    public function getMinimumNumberOfInstallments(): ?int
55
    {
56
        return $this->minimumNumberOfInstallments;
57
    }
58
59
    public function getMaximumNumberOfInstallments(): ?int
60
    {
61
        return $this->maximumNumberOfInstallments;
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 getTotalAmountDue(): ?Amount
80
    {
81
        return $this->totalAmountDue;
82
    }
83
}
84