Payment::setOrderId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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