コード例 #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
ファイル: System00.php プロジェクト: jschaedl/bav
 /**
  * @formatter:on
  */
 protected function iterationStep()
 {
     $this->accumulator += Math::crossSum($this->number * $this->getWeight());
 }