/** @return bool */ public function supports(BankAccountInterface $bankAccount) { $accountNumber = $bankAccount->getAccountNumber(); $sortCode = $bankAccount->getSortCode(); return 10 === strlen($accountNumber) && $sortCode->isBetween(new SortCode('080000'), new SortCode('090000')) && !$sortCode->isBetween(new SortCode('083000'), new SortCode('084000')); // Exclude Citibank }
/** @return bool */ public function supports(BankAccountInterface $bankAccount) { $accountNumber = $bankAccount->getAccountNumber(); $sortCode = $bankAccount->getSortCode(); return 9 === strlen($accountNumber) && ($sortCode->isBetween(new SortCode('090000'), new SortCode('092000')) || $sortCode->isBetween(new SortCode('720000'), new SortCode('730000')) || $sortCode->isBetween(new SortCode('890000'), new SortCode('893000'))); }
public static function createFromBankAccount(BankAccountInterface $bankAccount) { return new self($bankAccount, $bankAccount->getSortCode(), $bankAccount->getAccountNumber()); }
/** @return bool */ public function supports(BankAccountInterface $bankAccount) { $accountNumber = $bankAccount->getAccountNumber(); $sortCode = $bankAccount->getSortCode(); return 10 === strlen($accountNumber) && ($sortCode->isBetween(new SortCode('010000'), new SortCode('020000')) || $sortCode->isBetween(new SortCode('500000'), new SortCode('600000')) || $sortCode->isBetween(new SortCode('600000'), new SortCode('670000'))); }
/** @return bool */ public function supports(BankAccountInterface $bankAccount) { return 6 === strlen($bankAccount->getAccountNumber()); }