1 | <?php |
||
13 | class ISRCreditTransfer extends CreditTransfer |
||
14 | { |
||
15 | /** |
||
16 | * @var PostalAccount |
||
17 | */ |
||
18 | protected $creditorAccount; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $creditorReference; |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | * |
||
28 | * @param PostalAccount $creditorAccount Postal account of the creditor |
||
29 | * @param string $creditorReference Creditor reference information from remittance information |
||
30 | * |
||
31 | * @throws \InvalidArgumentException. An InvalidArgumentException is thrown if amount is not EUR or CHF |
||
32 | */ |
||
33 | 2 | public function __construct($instructionId, $endToEndId, Money\Money $amount, PostalAccount $creditorAccount, $creditorReference) |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 2 | public function asDom(DOMDocument $doc, PaymentInformation $paymentInformation) |
|
63 | |||
64 | /** |
||
65 | * Builds a DOM node of the Remittance Information field |
||
66 | * |
||
67 | * @param \DOMDocument $doc |
||
68 | * |
||
69 | * @return \DOMNode The built DOM node |
||
70 | * |
||
71 | * @throws \LogicException When no remittance information is set |
||
72 | */ |
||
73 | 2 | protected function buildRemittanceInformation(\DOMDocument $doc) |
|
91 | } |
||
92 |