public function __construct(BankAccount $bankAccount = null, Card $card = null) { if ($bankAccount) { $this->choices['bank'] = 'Bank Account (' . $bankAccount->getName() . ')'; } if ($card) { $this->choices['card'] = 'Debit Card (' . $card->getName() . ')'; } }
public function addBankAccount(BankAccount $bankAccount, Customer $customer) { $bankAccount->setCustomer($customer); $this->entityManager->persist($bankAccount); $this->entityManager->flush($bankAccount); }
public function getId() { if ($this->__isInitialized__ === false) { return (int) $this->_identifier["id"]; } $this->__load(); return parent::getId(); }
public function unstoreBankAccount(BankAccount $bankAccountEntity) { $bankAccount = $this->balancedPaymentCalls->getBankAccount($bankAccountEntity->getBalancedUri()); $bankAccount->unstore(); }