1 | <?php |
||
17 | class ISRCreditTransfer extends CreditTransfer |
||
18 | { |
||
19 | /** |
||
20 | * @var ISRParticipant |
||
21 | */ |
||
22 | protected $creditorAccount; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $creditorReference; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | * |
||
32 | * @param ISRParticipant $creditorAccount ISR participation number of the creditor |
||
33 | * @param string $creditorReference ISR reference number |
||
34 | * |
||
35 | * @throws InvalidArgumentException When the amount or the creditor reference is invalid. |
||
36 | */ |
||
37 | 4 | public function __construct($instructionId, $endToEndId, Money\Money $amount, ISRParticipant $creditorAccount, $creditorReference) |
|
57 | |||
58 | /** |
||
59 | * Sets creditor details |
||
60 | * |
||
61 | * @param string $creditorName |
||
62 | * @param PostalAddressInterface $creditorAddress |
||
63 | */ |
||
64 | 4 | public function setCreditorDetails($creditorName, PostalAddressInterface $creditorAddress) |
|
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | 1 | public function setRemittanceInformation($remittanceInformation) |
|
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | 2 | public function asDom(DOMDocument $doc, PaymentInformation $paymentInformation) |
|
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | 2 | protected function appendRemittanceInformation(\DOMDocument $doc, \DOMElement $transaction) |
|
117 | } |
||
118 |