@@ -53,10 +53,10 @@ public function createInstance(
5353 string $ debitorFinInstBIC ,
5454 string $ debitorIBAN ,
5555 string $ debitorName ,
56- DateTime $ executionDate = null ,
56+ ? DateTime $ executionDate = null ,
5757 bool $ batchBooking = true ,
58- string $ msgId = null ,
59- string $ paymentReference = null
58+ ? string $ msgId = null ,
59+ ? string $ paymentReference = null
6060 ): CustomerCreditTransferBuilder {
6161 $ this ->instance = new CustomerCreditTransfer ();
6262 $ now = new DateTime ();
@@ -191,8 +191,8 @@ public function createInstance(
191191
192192 private function createCreditTransferTransactionElement (
193193 float $ amount ,
194- string $ instrId = null ,
195- string $ endToEndId = null
194+ ? string $ instrId = null ,
195+ ? string $ endToEndId = null
196196 ): DOMElement {
197197 $ xpath = $ this ->prepareXPath ($ this ->instance );
198198 $ nbOfTxsList = $ xpath ->query ('//CstmrCdtTrfInitn//GrpHdr/NbOfTxs ' );
@@ -257,7 +257,7 @@ private function addCreditor(
257257 string $ creditorIBAN ,
258258 string $ creditorName ,
259259 ?PostalAddressInterface $ postalAddress ,
260- string $ purpose = null
260+ ? string $ purpose = null
261261 ): void {
262262 //agent
263263 if ($ creditorFinInstBIC !== null ) {
@@ -312,7 +312,7 @@ public function addBankTransaction(
312312 ?PostalAddressInterface $ postalAddress ,
313313 float $ amount ,
314314 string $ currency ,
315- string $ purpose = null
315+ ? string $ purpose = null
316316 ): CustomerCreditTransferBuilder {
317317 if ($ currency !== 'EUR ' ) {
318318 throw new InvalidArgumentException ('The SEPA transaction is restricted to EUR currency. ' );
@@ -334,7 +334,7 @@ public function addSEPATransaction(
334334 ?PostalAddressInterface $ postalAddress ,
335335 float $ amount ,
336336 string $ currency ,
337- string $ purpose = null
337+ ? string $ purpose = null
338338 ): CustomerCreditTransferBuilder {
339339 if ($ currency !== 'EUR ' ) {
340340 throw new InvalidArgumentException ('The SEPA transaction is restricted to EUR currency. ' );
@@ -378,7 +378,7 @@ public function addForeignTransaction(
378378 ?PostalAddressInterface $ postalAddress ,
379379 float $ amount ,
380380 string $ currency ,
381- string $ purpose = null
381+ ? string $ purpose = null
382382 ): CustomerCreditTransferBuilder {
383383 $ xmlCdtTrfTxInf = $ this ->createCreditTransferTransactionElement ($ amount );
384384
0 commit comments