1 | <?php |
||
13 | class Entry |
||
14 | { |
||
15 | /** |
||
16 | * @var Record |
||
17 | */ |
||
18 | private $record; |
||
19 | |||
20 | /** |
||
21 | * @var Money |
||
22 | */ |
||
23 | private $amount; |
||
24 | |||
25 | /** |
||
26 | * @var DateTimeImmutable |
||
27 | */ |
||
28 | private $bookingDate; |
||
29 | |||
30 | /** |
||
31 | * @var DateTimeImmutable |
||
32 | */ |
||
33 | private $valueDate; |
||
34 | |||
35 | /** |
||
36 | * @var EntryTransactionDetail[] |
||
37 | */ |
||
38 | private $transactionDetails = []; |
||
39 | |||
40 | /** |
||
41 | * @var bool |
||
42 | */ |
||
43 | private $reversalIndicator = false; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | private $reference; |
||
49 | |||
50 | /** |
||
51 | * @var string |
||
52 | */ |
||
53 | private $accountServicerReference; |
||
54 | |||
55 | /** |
||
56 | * @var int |
||
57 | */ |
||
58 | private $index; |
||
59 | |||
60 | /** |
||
61 | * @var string |
||
62 | */ |
||
63 | private $batchPaymentId; |
||
64 | |||
65 | /** |
||
66 | * @var string |
||
67 | */ |
||
68 | private $additionalInfo; |
||
69 | |||
70 | /** |
||
71 | * @var BankTransactionCode |
||
72 | */ |
||
73 | private $bankTransactionCode; |
||
74 | |||
75 | /** |
||
76 | * @var Charges |
||
77 | */ |
||
78 | private $charges; |
||
79 | |||
80 | /** |
||
81 | * @param Record $record |
||
82 | * @param int $index |
||
83 | * @param Money $amount |
||
84 | */ |
||
85 | 21 | public function __construct(Record $record, $index, Money $amount) |
|
91 | |||
92 | /** |
||
93 | * @return Record |
||
94 | */ |
||
95 | public function getRecord() |
||
99 | |||
100 | /** |
||
101 | * @return Money |
||
102 | */ |
||
103 | 4 | public function getAmount() |
|
107 | |||
108 | /** |
||
109 | * @return DateTimeImmutable |
||
110 | */ |
||
111 | 3 | public function getBookingDate() |
|
115 | |||
116 | /** |
||
117 | * @return DateTimeImmutable |
||
118 | */ |
||
119 | 3 | public function getValueDate() |
|
123 | |||
124 | /** |
||
125 | * @param EntryTransactionDetail $detail |
||
126 | */ |
||
127 | 20 | public function addTransactionDetail(EntryTransactionDetail $detail) |
|
131 | |||
132 | /** |
||
133 | * @return EntryTransactionDetail[] |
||
134 | */ |
||
135 | 5 | public function getTransactionDetails() |
|
139 | |||
140 | /** |
||
141 | * @return EntryTransactionDetail |
||
142 | */ |
||
143 | 2 | public function getTransactionDetail() |
|
151 | |||
152 | /** |
||
153 | * @return bool |
||
154 | */ |
||
155 | public function getReversalIndicator() |
||
159 | |||
160 | /** |
||
161 | * @param boolean $reversalIndicator |
||
162 | */ |
||
163 | 1 | public function setReversalIndicator($reversalIndicator) |
|
167 | |||
168 | /** |
||
169 | * @return string |
||
170 | */ |
||
171 | public function getReference() |
||
175 | |||
176 | /** |
||
177 | * @param string $reference |
||
178 | */ |
||
179 | 1 | public function setReference($reference) |
|
183 | |||
184 | /** |
||
185 | * Unique reference as assigned by the account servicing institution to unambiguously identify the entry. |
||
186 | * @return string |
||
187 | */ |
||
188 | public function getAccountServicerReference() |
||
192 | |||
193 | /** |
||
194 | * @param string $accountServicerReference |
||
195 | */ |
||
196 | 18 | public function setAccountServicerReference($accountServicerReference) |
|
200 | |||
201 | /** |
||
202 | * @return int |
||
203 | */ |
||
204 | public function getIndex() |
||
208 | |||
209 | /** |
||
210 | * @param string $batchPaymentId |
||
211 | */ |
||
212 | 11 | public function setBatchPaymentId($batchPaymentId) |
|
216 | |||
217 | /** |
||
218 | * @return string |
||
219 | */ |
||
220 | public function getBatchPaymentId() |
||
224 | |||
225 | /** |
||
226 | * @return string |
||
227 | */ |
||
228 | 1 | public function getAdditionalInfo() |
|
232 | |||
233 | /** |
||
234 | * @param string $additionalInfo |
||
235 | */ |
||
236 | 21 | public function setAdditionalInfo($additionalInfo) |
|
240 | |||
241 | /** |
||
242 | * @return BankTransactionCode |
||
243 | */ |
||
244 | 2 | public function getBankTransactionCode() |
|
248 | |||
249 | /** |
||
250 | * @param BankTransactionCode $bankTransactionCode |
||
251 | */ |
||
252 | 20 | public function setBankTransactionCode(BankTransactionCode $bankTransactionCode) |
|
256 | |||
257 | /** |
||
258 | * @return Charges |
||
259 | */ |
||
260 | public function getCharges() |
||
264 | |||
265 | /** |
||
266 | * @param Charges $charges |
||
267 | */ |
||
268 | public function setCharges(Charges $charges) |
||
272 | |||
273 | /** |
||
274 | * @param \DateTimeImmutable $date |
||
275 | */ |
||
276 | 20 | public function setBookingDate(\DateTimeImmutable $date) |
|
280 | |||
281 | /** |
||
282 | * @param \DateTimeImmutable $date |
||
283 | */ |
||
284 | 20 | public function setValueDate(\DateTimeImmutable $date) |
|
288 | } |
||
289 |