示例#1
0
 public function isValid($account)
 {
     try {
         return strlen($account) == 10 && $account[0] == 9 ? $this->validator20->isValid($account) : parent::isValid($account);
     } catch (ValidatorESERException $e) {
         return false;
     }
 }
示例#2
0
 public function isValid($account)
 {
     if (parent::isValid($account)) {
         return true;
     }
     $account = ltrim($account, '0') . '00';
     return strlen($account) <= $this->normalizedSize && parent::isValid($account);
 }
示例#3
0
 public function isValid($account)
 {
     if (parent::isValid($account)) {
         return true;
     }
     if (substr($this->account, 0, 3) !== '000') {
         return false;
     }
     return parent::isValid(ltrim($account . '00', '0'));
 }