示例#1
0
文件: System21.php 项目: jschaedl/bav
 protected function getResult()
 {
     for ($result = $this->accumulator; $result >= 10; $result = Math::crossSum($result)) {
     }
     $result = 10 - $result;
     return (string) $result === $this->getCheckNumber();
 }
示例#2
0
文件: System99.php 项目: jschaedl/bav
 public function isValid($account)
 {
     return parent::isValid($account) || Math::isBetween($account, 396000000, 499999999);
 }
示例#3
0
文件: System00.php 项目: jschaedl/bav
 /**
  * @formatter:on
  */
 protected function iterationStep()
 {
     $this->accumulator += Math::crossSum($this->number * $this->getWeight());
 }
示例#4
0
文件: SystemB7.php 项目: jschaedl/bav
 protected function getResult()
 {
     return Math::isBetween($this->account, 1000000, 5999999) || Math::isBetween($this->account, 700000000, 899999999) ? parent::getResult() : true;
 }
示例#5
0
文件: System16.php 项目: jschaedl/bav
 protected function getResult()
 {
     return $this->accumulator % $this->modulo === 1 ? $this->getChecknumber() === $this->account[Math::getNormalizedPosition($this->account, $this->checknumberPosition) - 1] : parent::getResult();
 }