1 | <?php |
||
17 | class ForeignCreditTransfer extends CreditTransfer |
||
18 | { |
||
19 | /** |
||
20 | * @var AccountInterface |
||
21 | */ |
||
22 | protected $creditorAccount; |
||
23 | |||
24 | /** |
||
25 | * @var BIC|FinancialInstitutionAddress |
||
26 | */ |
||
27 | protected $creditorAgent; |
||
28 | |||
29 | /** |
||
30 | * @var BIC |
||
31 | */ |
||
32 | protected $intermediaryAgent; |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | * |
||
37 | * @param AccountInterface $creditorAccount Account of the creditor |
||
38 | * @param BIC|FinancialInstitutionAddress $creditorAgent BIC or address of the creditor's financial institution |
||
39 | */ |
||
40 | 3 | public function __construct($instructionId, $endToEndId, Money $amount, $creditorName, PostalAddressInterface $creditorAddress, AccountInterface $creditorAccount, FinancialInstitutionInterface $creditorAgent) |
|
51 | |||
52 | /** |
||
53 | * Set the intermediary agent of the transaction. |
||
54 | * |
||
55 | * @param BIC $intermediaryAgent BIC of the intmediary agent |
||
56 | */ |
||
57 | 2 | public function setIntermediaryAgent(BIC $intermediaryAgent) |
|
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | 2 | public function asDom(DOMDocument $doc, PaymentInformation $paymentInformation) |
|
91 | } |
||
92 |