1 | <?php |
||
15 | class ISRCreditTransfer extends CreditTransfer |
||
16 | { |
||
17 | /** |
||
18 | * @var ISRParticipant |
||
19 | */ |
||
20 | protected $creditorAccount; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $creditorReference; |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | * |
||
30 | * @param ISRParticipant $creditorAccount ISR participation number of the creditor |
||
31 | * @param string $creditorReference ISR reference number |
||
32 | * |
||
33 | * @throws InvalidArgumentException When the amount is not in EUR or CHF. |
||
34 | */ |
||
35 | 3 | public function __construct($instructionId, $endToEndId, Money\Money $amount, ISRParticipant $creditorAccount, $creditorReference) |
|
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | 1 | public function setRemittanceInformation($remittanceInformation) |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 2 | public function asDom(DOMDocument $doc, PaymentInformation $paymentInformation) |
|
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | 2 | protected function appendRemittanceInformation(\DOMDocument $doc, \DOMElement $transaction) |
|
95 | } |
||
96 |