Passed
Push — master ( a08aa1...6e1d07 )
by Adrien
07:44
created

Reference::setClearingSystemReference()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Genkgo\Camt\DTO;
4
5
/**
6
 * Class Reference
7
 * @package Genkgo\Camt\DTO
8
 */
9
class Reference
10
{
11
    /**
12
     * @var null|string
13
     */
14
    private $messageId;
15
16
    /**
17
     * @var null|string
18
     */
19
    private $accountServicerReference;
20
21
    /**
22
     * @var null|string
23
     */
24
    private $paymentInformationId;
25
26
    /**
27
     * @var null|string
28
     */
29
    private $instructionId;
30
31
    /**
32
     * @var null|string
33
     */
34
    private $endToEndId;
35
36
    /**
37
     * @var null|string
38
     */
39
    private $transactionId;
40
41
    /**
42
     * @var null|string
43
     */
44
    private $mandateId;
45
46
    /**
47
     * @var null|string
48
     */
49
    private $chequeNumber;
50
51
    /**
52
     * @var null|string
53
     */
54
    private $clearingSystemReference;
55
56
    /**
57
     * @var null|string
58
     */
59
    private $accountOwnerTransactionId;
60
61
    /**
62
     * @var null|string
63
     */
64
    private $accountServicerTransactionId;
65
66
    /**
67
     * @var null|string
68
     */
69
    private $marketInfrastructureTransactionId;
70
71
    /**
72
     * @var null|string
73
     */
74
    private $processingId;
75
76
    /**
77
     * @var ProprietaryReference[]
78
     */
79
    private $proprietaries = [];
80
81
    /**
82
     * @return null|string
83
     */
84
    public function getMessageId(): ?string
85
    {
86
        return $this->messageId;
87
    }
88
89
    /**
90
     * @param null|string $messageId
91
     *
92
     * @return Reference
93
     */
94 19
    public function setMessageId(?string $messageId)
95
    {
96 19
        $this->messageId = $messageId;
97
98 19
        return $this;
99
    }
100
101
    /**
102
     * @return null|string
103
     */
104
    public function getAccountServicerReference(): ?string
105
    {
106
        return $this->accountServicerReference;
107
    }
108
109
    /**
110
     * @param null|string $accountServicerReference
111
     *
112
     * @return Reference
113
     */
114 19
    public function setAccountServicerReference(?string $accountServicerReference)
115
    {
116 19
        $this->accountServicerReference = $accountServicerReference;
117
118 19
        return $this;
119
    }
120
121
    /**
122
     * @return null|string
123
     */
124
    public function getPaymentInformationId(): ?string
125
    {
126
        return $this->paymentInformationId;
127
    }
128
129
    /**
130
     * @param null|string $paymentInformationId
131
     *
132
     * @return Reference
133
     */
134 19
    public function setPaymentInformationId(?string $paymentInformationId)
135
    {
136 19
        $this->paymentInformationId = $paymentInformationId;
137
138 19
        return $this;
139
    }
140
141
    /**
142
     * @return null|string
143
     */
144
    public function getInstructionId(): ?string
145
    {
146
        return $this->instructionId;
147
    }
148
149
    /**
150
     * @param null|string $instructionId
151
     *
152
     * @return Reference
153
     */
154 19
    public function setInstructionId(?string $instructionId)
155
    {
156 19
        $this->instructionId = $instructionId;
157
158 19
        return $this;
159
    }
160
161
    /**
162
     * @return null|string
163
     */
164 1
    public function getEndToEndId(): ?string
165
    {
166 1
        return $this->endToEndId;
167
    }
168
169
    /**
170
     * @param null|string $endToEndId
171
     *
172
     * @return Reference
173
     */
174 19
    public function setEndToEndId(?string $endToEndId)
175
    {
176 19
        $this->endToEndId = $endToEndId;
177
178 19
        return $this;
179
    }
180
181
    /**
182
     * @return null|string
183
     */
184
    public function getTransactionId(): ?string
185
    {
186
        return $this->transactionId;
187
    }
188
189
    /**
190
     * @param null|string $transactionId
191
     *
192
     * @return Reference
193
     */
194 19
    public function setTransactionId(?string $transactionId)
195
    {
196 19
        $this->transactionId = $transactionId;
197
198 19
        return $this;
199
    }
200
201
    /**
202
     * @return null|string
203
     */
204 1
    public function getMandateId(): ?string
205
    {
206 1
        return $this->mandateId;
207
    }
208
209
    /**
210
     * @param null|string $mandateId
211
     *
212
     * @return Reference
213
     */
214 19
    public function setMandateId(?string $mandateId)
215
    {
216 19
        $this->mandateId = $mandateId;
217
218 19
        return $this;
219
    }
220
221
    /**
222
     * @return null|string
223
     */
224
    public function getChequeNumber(): ?string
225
    {
226
        return $this->chequeNumber;
227
    }
228
229
    /**
230
     * @param null|string $chequeNumber
231
     *
232
     * @return Reference
233
     */
234 19
    public function setChequeNumber(?string $chequeNumber)
235
    {
236 19
        $this->chequeNumber = $chequeNumber;
237
238 19
        return $this;
239
    }
240
241
    /**
242
     * @return null|string
243
     */
244
    public function getClearingSystemReference(): ?string
245
    {
246
        return $this->clearingSystemReference;
247
    }
248
249
    /**
250
     * @param null|string $clearingSystemReference
251
     *
252
     * @return Reference
253
     */
254 19
    public function setClearingSystemReference(?string $clearingSystemReference)
255
    {
256 19
        $this->clearingSystemReference = $clearingSystemReference;
257
258 19
        return $this;
259
    }
260
261
    /**
262
     * @return null|string
263
     */
264
    public function getAccountOwnerTransactionId(): ?string
265
    {
266
        return $this->accountOwnerTransactionId;
267
    }
268
269
    /**
270
     * @param null|string $accountOwnerTransactionId
271
     *
272
     * @return Reference
273
     */
274 19
    public function setAccountOwnerTransactionId(?string $accountOwnerTransactionId)
275
    {
276 19
        $this->accountOwnerTransactionId = $accountOwnerTransactionId;
277
278 19
        return $this;
279
    }
280
281
    /**
282
     * @return null|string
283
     */
284
    public function getAccountServicerTransactionId(): ?string
285
    {
286
        return $this->accountServicerTransactionId;
287
    }
288
289
    /**
290
     * @param null|string $accountServicerTransactionId
291
     *
292
     * @return Reference
293
     */
294 19
    public function setAccountServicerTransactionId(?string $accountServicerTransactionId)
295
    {
296 19
        $this->accountServicerTransactionId = $accountServicerTransactionId;
297
298 19
        return $this;
299
    }
300
301
    /**
302
     * @return null|string
303
     */
304
    public function getMarketInfrastructureTransactionId(): ?string
305
    {
306
        return $this->marketInfrastructureTransactionId;
307
    }
308
309
    /**
310
     * @param null|string $marketInfrastructureTransactionId
311
     *
312
     * @return Reference
313
     */
314 19
    public function setMarketInfrastructureTransactionId(?string $marketInfrastructureTransactionId)
315
    {
316 19
        $this->marketInfrastructureTransactionId = $marketInfrastructureTransactionId;
317
318 19
        return $this;
319
    }
320
321
    /**
322
     * @return null|string
323
     */
324
    public function getProcessingId(): ?string
325
    {
326
        return $this->processingId;
327
    }
328
329
    /**
330
     * @param null|string $processingId
331
     *
332
     * @return Reference
333
     */
334 19
    public function setProcessingId(?string $processingId)
335
    {
336 19
        $this->processingId = $processingId;
337
338 19
        return $this;
339
    }
340
341
    /**
342
     * @param ProprietaryReference $proprietary
343
     *
344
     * @return Reference
345
     */
346 9
    public function addProprietary(ProprietaryReference $proprietary)
347
    {
348 9
        $this->proprietaries[] = $proprietary;
349
350 9
        return $this;
351
    }
352
353
    /**
354
     * @return ProprietaryReference[]
355
     */
356 1
    public function getProprietaries()
357
    {
358 1
        return $this->proprietaries;
359
    }
360
}
361