示例#1
0
文件: System08.php 项目: jschaedl/bav
 protected function getResult()
 {
     if ((int) $this->account < 60000) {
         return false;
     }
     return parent::getResult();
 }
示例#2
0
文件: System13.php 项目: jschaedl/bav
 /**
  * @param string $account
  * @return bool
  */
 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
文件: System65.php 项目: jschaedl/bav
 protected function init($account)
 {
     parent::init($account);
     if ($this->account[8] == 9) {
         $this->setEnd(-1);
     } else {
         $this->setEnd(6);
     }
 }
示例#4
0
文件: System41.php 项目: jschaedl/bav
 protected function init($account)
 {
     parent::init($account);
     if ($this->account[3] == 9) {
         $this->end = 3;
     } else {
         $this->end = 0;
     }
 }
示例#5
0
文件: System74.php 项目: jschaedl/bav
 protected function getResult()
 {
     if (parent::getResult()) {
         return true;
     } elseif (strlen(ltrim($this->account, '0')) == 6) {
         $nextDecade = (int) ($this->accumulator / 10) + 1;
         $nextHalfDecade = $nextDecade * 10 - 5;
         $check = $nextHalfDecade - $this->accumulator;
         return (string) $check === $this->getChecknumber();
     } else {
         return false;
     }
 }
示例#6
0
文件: System75.php 项目: jschaedl/bav
 public function isValid($account)
 {
     $account = ltrim($account, '0');
     $length = strlen($account);
     if ($length < 6 || $length > 9) {
         return false;
     }
     if ($length == 9) {
         if ($account[0] == 9) {
             $account = substr($account, 1, 6);
         } else {
             $account = substr($account, 0, 6);
         }
     }
     return parent::isValid($account);
 }
示例#7
0
文件: SystemA1.php 项目: jschaedl/bav
 protected function getResult()
 {
     $length = strlen(ltrim($this->account, '0'));
     return ($length == 8 || $length == 10) && parent::getResult();
 }
示例#8
0
文件: System45.php 项目: jschaedl/bav
 protected function getResult()
 {
     return $this->account[0] === '0' || $this->account[4] === '1' || parent::getResult();
 }
示例#9
0
文件: System59.php 项目: jschaedl/bav
 public function isValid($account)
 {
     return ltrim($account, "0") != "" && strlen($account) < 9 || parent::isValid($account);
 }
示例#10
0
文件: SystemE0.php 项目: jschaedl/bav
 protected function getResult()
 {
     $this->accumulator += 7;
     return parent::getResult();
 }
示例#11
0
文件: System78.php 项目: jschaedl/bav
 public function isValid($account)
 {
     return strlen($account) !== 8 && parent::isValid($account);
 }