Completed
Push — master ( d898c6...27e958 )
by
unknown
02:36
created

Product::getCurrency()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AcquiroPay\Models\Entities;
6
7
class Product extends Entity
8
{
9
    const TYPE_FREE_PRICE = 'FREE_PRICE';
10
    const TYPE_FIXED_PRICE = 'FIXED_PRICE';
11
    const TYPE_SUBSCRIBE = 'SUBSCRIBE';
12
13
    private $status;
14
    private $type;
15
    private $price;
16
    private $description;
17
    private $allowRandomPrice;
18
    private $fields;
19
    private $currencyId;
20
    private $currency;
21
    private $siteId;
22
    private $site;
23
    private $notifyUrl;
24
    private $workThrough;
25
    private $confirmPaymentType;
26
    private $notifyEmail;
27
    private $messengerNotifyUrl;
28
    private $supportEmail;
29
    private $supportPhone;
30
    private $accessUrl;
31
    private $secretWord;
32
    private $allowRebill;
33
    private $UUID;
34
35
    /**
36
     * @var Payment[]
37
     */
38
    private $payments;
39
40
41
    public function getType(): ?string
42
    {
43
        return $this->type;
44
    }
45
46
    public function setType(?string $type): void
47
    {
48
        $this->type = $type;
49
    }
50
51
    public function getPrice(): ?float
52
    {
53
        return $this->price;
54
    }
55
56
    public function setPrice(?float $price): void
57
    {
58
        $this->price = $price;
59
    }
60
61
    public function getDescription(): ?string
62
    {
63
        return $this->description;
64
    }
65
66
    public function setDescription(?string $description): void
67
    {
68
        $this->description = $description;
69
    }
70
71
    public function getAllowRandomPrice(): bool
72
    {
73
        return $this->allowRandomPrice;
74
    }
75
76
    public function setAllowRandomPrice(bool $allowRandomPrice): void
77
    {
78
        $this->allowRandomPrice = $allowRandomPrice;
79
    }
80
81
    public function getFields(): ?string
82
    {
83
        return $this->fields;
84
    }
85
86
    public function setFields(?string $fields): void
87
    {
88
        $this->fields = $fields;
89
    }
90
91
    public function getCurrencyId(): ?int
92
    {
93
        return $this->currencyId;
94
    }
95
96
    public function setCurrencyId(?int $currencyId): void
97
    {
98
        $this->currencyId = $currencyId;
99
    }
100
101
    public function getSiteId(): ?int
102
    {
103
        return $this->siteId;
104
    }
105
106
    public function setSiteId(?int $siteId): void
107
    {
108
        $this->siteId = $siteId;
109
    }
110
111
    public function getSite(): ?Site
112
    {
113
        return $this->site;
114
    }
115
116
    public function setSite(?Site $site): void
117
    {
118
        $this->site = $site;
119
    }
120
121
    /**
122
     * @return Payment[]
123
     */
124
    public function getPayments(): array
125
    {
126
        return $this->payments;
127
    }
128
129
    /**
130
     * @param Payment[] $payments
131
     */
132
    public function setPayments(array $payments)
133
    {
134
        $this->payments = $payments;
135
    }
136
137
    public function getStatus(): ?string
138
    {
139
        return $this->status;
140
    }
141
142
    public function setStatus(?string $status)
143
    {
144
        $this->status = $status;
145
    }
146
147
    public function getNotifyUrl(): ?string
148
    {
149
        return $this->notifyUrl;
150
    }
151
152
    public function setNotifyUrl(?string $notifyUrl)
153
    {
154
        $this->notifyUrl = $notifyUrl;
155
    }
156
157
    public function getWorkThrough():?string
158
    {
159
        return $this->workThrough;
160
    }
161
162
    public function setWorkThrough(?string $workThrough)
163
    {
164
        $this->workThrough = $workThrough;
165
    }
166
167
    public function getConfirmPaymentType(): string
168
    {
169
        return $this->confirmPaymentType;
170
    }
171
172
    public function setConfirmPaymentType(string $confirmPaymentType)
173
    {
174
        $this->confirmPaymentType = $confirmPaymentType;
175
    }
176
177
    public function getNotifyEmail(): ?string
178
    {
179
        return $this->notifyEmail;
180
    }
181
182
    public function setNotifyEmail(?string $notifyEmail)
183
    {
184
        $this->notifyEmail = $notifyEmail;
185
    }
186
187
    public function getMessengerNotifyUrl(): ?string
188
    {
189
        return $this->messengerNotifyUrl;
190
    }
191
192
    public function setMessengerNotifyUrl(?string $messengerNotifyUrl)
193
    {
194
        $this->messengerNotifyUrl = $messengerNotifyUrl;
195
    }
196
197
    public function getSupportEmail(): ?string
198
    {
199
        return $this->supportEmail;
200
    }
201
202
    public function setSupportEmail(?string $supportEmail)
203
    {
204
        $this->supportEmail = $supportEmail;
205
    }
206
207
    public function getSupportPhone(): ?string
208
    {
209
        return $this->supportPhone;
210
    }
211
212
    public function setSupportPhone(?string $supportPhone)
213
    {
214
        $this->supportPhone = $supportPhone;
215
    }
216
217
    public function getAccessUrl(): ?string
218
    {
219
        return $this->accessUrl;
220
    }
221
222
    public function setAccessUrl(?string $accessUrl)
223
    {
224
        $this->accessUrl = $accessUrl;
225
    }
226
227
    public function getSecretWord(): ?string
228
    {
229
        return $this->secretWord;
230
    }
231
232
    public function setSecretWord(?string $secretWord)
233
    {
234
        $this->secretWord = $secretWord;
235
    }
236
237
    public function getAllowRebill():?int
238
    {
239
        return $this->allowRebill;
240
    }
241
242
    public function setAllowRebill(?int $allowRebill)
243
    {
244
        $this->allowRebill = $allowRebill;
245
    }
246
247
    public function getUUID(): ?string
248
    {
249
        return $this->UUID;
250
    }
251
252
    public function setUUID(?string $UUID)
253
    {
254
        $this->UUID = $UUID;
255
    }
256
257
    public function getCurrency(): ?Currency
258
    {
259
        return $this->currency;
260
    }
261
262
    public function setCurrency(?Currency $currency)
263
    {
264
        $this->currency = $currency;
265
    }
266
}
267