コード例 #1
0
 /**
  * {@inheritdoc}
  * @param IBAN          $creditorIBAN        IBAN of the creditor
  * @param string        $creditorAgentName   Name of the creditor's financial institution
  * @param PostalAccount $creditorAgentPostal Postal account of the creditor's financial institution
  */
 public function __construct($instructionId, $endToEndId, Money\CHF $amount, $creditorName, PostalAddress $creditorAddress, IBAN $creditorIBAN, $creditorAgentName, PostalAccount $creditorAgentPostal)
 {
     parent::__construct($instructionId, $endToEndId, $amount, $creditorName, $creditorAddress);
     $this->creditorIBAN = $creditorIBAN;
     $this->creditorAgentName = (string) $creditorAgentName;
     $this->creditorAgentPostal = $creditorAgentPostal;
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  * @param IBAN   $creditorIBAN  IBAN of the creditor
  * @param BC|BIC $creditorAgent BC or BIC of the creditor's financial institution
  */
 public function __construct($instructionId, $endToEndId, Money\CHF $amount, $creditorName, PostalAddress $creditorAddress, IBAN $creditorIBAN, FinancialInstitutionInterface $creditorAgent)
 {
     parent::__construct($instructionId, $endToEndId, $amount, $creditorName, $creditorAddress);
     if (!$creditorAgent instanceof BC && !$creditorAgent instanceof BIC) {
         throw new \InvalidArgumentException('The creditor agent must be an instance of BC or BIC.');
     }
     $this->creditorIBAN = $creditorIBAN;
     $this->creditorAgent = $creditorAgent;
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  * @param PostalAccount $creditorAccount Postal account of the creditor
  */
 public function __construct($instructionId, $endToEndId, Money\CHF $amount, $creditorName, PostalAddress $creditorAddress, PostalAccount $creditorAccount)
 {
     parent::__construct($instructionId, $endToEndId, $amount, $creditorName, $creditorAddress);
     $this->creditorAccount = $creditorAccount;
 }