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

Payment   A

Complexity

Total Complexity 17

Size/Duplication

Total Lines 149
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 34
dl 0
loc 149
rs 10
c 0
b 0
f 0
wmc 17

17 Methods

Rating   Name   Duplication   Size   Complexity  
A setPayerNote() 0 5 1
A setDescription() 0 5 1
A setRecurring() 0 5 1
A getAmount() 0 3 1
A setMandateId() 0 5 1
A getDescription() 0 3 1
A __construct() 0 3 1
A setOrderId() 0 5 1
A getRecurring() 0 3 1
A getInstallment() 0 3 1
A setInstallment() 0 5 1
A getOrderId() 0 3 1
A setOptions() 0 5 1
A setAmount() 0 5 1
A getPayerNote() 0 3 1
A getMandateId() 0 3 1
A getOptions() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Request\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
7
final class Payment
8
{
9
    /**
10
     * @var Amount
11
     * @SerializedName("Amount")
12
     */
13
    private $amount;
14
15
    /**
16
     * @var string|null
17
     * @SerializedName("OrderId")
18
     */
19
    private $orderId;
20
21
    /**
22
     * @var string|null
23
     * @SerializedName("PayerNote")
24
     */
25
    private $payerNote;
26
27
    /**
28
     * @var string|null
29
     * @SerializedName("Description")
30
     */
31
    private $description;
32
33
    /**
34
     * @var string|null
35
     * @SerializedName("MandateId")
36
     */
37
    private $mandateId;
38
39
    /**
40
     * @var Options|null
41
     * @SerializedName("Options")
42
     */
43
    private $options;
44
45
    /**
46
     * @var Recurring|null
47
     * @SerializedName("Recurring")
48
     */
49
    private $recurring;
50
51
    /**
52
     * @var Installment|null
53
     * @SerializedName("Installment")
54
     */
55
    private $installment;
56
57
    public function __construct(Amount $amount)
58
    {
59
        $this->amount = $amount;
60
    }
61
62
    public function getAmount(): Amount
63
    {
64
        return $this->amount;
65
    }
66
67
    public function setAmount(Amount $amount): self
68
    {
69
        $this->amount = $amount;
70
71
        return $this;
72
    }
73
74
    public function getOrderId(): ?string
75
    {
76
        return $this->orderId;
77
    }
78
79
    public function setOrderId(string $orderId): self
80
    {
81
        $this->orderId = $orderId;
82
83
        return $this;
84
    }
85
86
    public function getPayerNote(): ?string
87
    {
88
        return $this->payerNote;
89
    }
90
91
    public function setPayerNote(string $payerNote): self
92
    {
93
        $this->payerNote = $payerNote;
94
95
        return $this;
96
    }
97
98
    public function getDescription(): ?string
99
    {
100
        return $this->description;
101
    }
102
103
    public function setDescription(?string $description): self
104
    {
105
        $this->description = $description;
106
107
        return $this;
108
    }
109
110
    public function getMandateId(): ?string
111
    {
112
        return $this->mandateId;
113
    }
114
115
    public function setMandateId(string $mandateId): self
116
    {
117
        $this->mandateId = $mandateId;
118
119
        return $this;
120
    }
121
122
    public function getOptions(): ?Options
123
    {
124
        return $this->options;
125
    }
126
127
    public function setOptions(Options $options): self
128
    {
129
        $this->options = $options;
130
131
        return $this;
132
    }
133
134
    public function getRecurring(): ?Recurring
135
    {
136
        return $this->recurring;
137
    }
138
139
    public function setRecurring(Recurring $recurring): self
140
    {
141
        $this->recurring = $recurring;
142
143
        return $this;
144
    }
145
146
    public function getInstallment(): ?Installment
147
    {
148
        return $this->installment;
149
    }
150
151
    public function setInstallment(Installment $installment): self
152
    {
153
        $this->installment = $installment;
154
155
        return $this;
156
    }
157
}
158