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