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 | * @param DateTimeImmutable $bookingDate |
||
85 | * @param DateTimeImmutable $valueDate |
||
86 | */ |
||
87 | 21 | public function __construct(Record $record, $index, Money $amount, DateTimeImmutable $bookingDate, DateTimeImmutable $valueDate, $additionalInfo) |
|
96 | |||
97 | /** |
||
98 | * @return Record |
||
99 | */ |
||
100 | public function getRecord() |
||
104 | |||
105 | /** |
||
106 | * @return Money |
||
107 | */ |
||
108 | 4 | public function getAmount() |
|
112 | |||
113 | /** |
||
114 | * @return DateTimeImmutable |
||
115 | */ |
||
116 | 3 | public function getBookingDate() |
|
120 | |||
121 | /** |
||
122 | * @return DateTimeImmutable |
||
123 | */ |
||
124 | 3 | public function getValueDate() |
|
128 | |||
129 | /** |
||
130 | * @param EntryTransactionDetail $detail |
||
131 | */ |
||
132 | 20 | public function addTransactionDetail(EntryTransactionDetail $detail) |
|
136 | |||
137 | /** |
||
138 | * @return EntryTransactionDetail[] |
||
139 | */ |
||
140 | 5 | public function getTransactionDetails() |
|
144 | |||
145 | /** |
||
146 | * @return EntryTransactionDetail |
||
147 | */ |
||
148 | 2 | public function getTransactionDetail() |
|
156 | |||
157 | /** |
||
158 | * @return bool |
||
159 | */ |
||
160 | public function getReversalIndicator() |
||
164 | |||
165 | /** |
||
166 | * @param boolean $reversalIndicator |
||
167 | */ |
||
168 | 1 | public function setReversalIndicator($reversalIndicator) |
|
172 | |||
173 | /** |
||
174 | * @return string |
||
175 | */ |
||
176 | public function getReference() |
||
180 | |||
181 | /** |
||
182 | * @param string $reference |
||
183 | */ |
||
184 | 1 | public function setReference($reference) |
|
188 | |||
189 | /** |
||
190 | * Unique reference as assigned by the account servicing institution to unambiguously identify the entry. |
||
191 | * @return string |
||
192 | */ |
||
193 | public function getAccountServicerReference() |
||
197 | |||
198 | /** |
||
199 | * @param string $accountServicerReference |
||
200 | */ |
||
201 | 18 | public function setAccountServicerReference($accountServicerReference) |
|
205 | |||
206 | /** |
||
207 | * @return int |
||
208 | */ |
||
209 | public function getIndex() |
||
213 | |||
214 | /** |
||
215 | * @param string $batchPaymentId |
||
216 | */ |
||
217 | 11 | public function setBatchPaymentId($batchPaymentId) |
|
221 | |||
222 | /** |
||
223 | * @return string |
||
224 | */ |
||
225 | public function getBatchPaymentId() |
||
229 | |||
230 | /** |
||
231 | * @return string |
||
232 | */ |
||
233 | 1 | public function getAdditionalInfo() |
|
237 | |||
238 | /** |
||
239 | * @param string $additionalInfo |
||
240 | */ |
||
241 | public function setAdditionalInfo($additionalInfo) |
||
245 | |||
246 | /** |
||
247 | * @return BankTransactionCode |
||
248 | */ |
||
249 | 1 | public function getBankTransactionCode() |
|
253 | |||
254 | /** |
||
255 | * @param BankTransactionCode $bankTransactionCode |
||
256 | */ |
||
257 | 20 | public function setBankTransactionCode(BankTransactionCode $bankTransactionCode) |
|
261 | |||
262 | /** |
||
263 | * @return Charges |
||
264 | */ |
||
265 | public function getCharges() |
||
269 | |||
270 | /** |
||
271 | * @param Charges $charges |
||
272 | */ |
||
273 | public function setCharges(Charges $charges) |
||
277 | |||
278 | } |
||
279 |