Esempio n. 1
0
 protected function getResult()
 {
     for ($result = $this->accumulator; $result >= 10; $result = Math::crossSum($result)) {
     }
     $result = 10 - $result;
     return (string) $result === $this->getCheckNumber();
 }
Esempio n. 2
0
 /**
  * @formatter:on
  */
 protected function iterationStep()
 {
     $this->accumulator += Math::crossSum($this->number * $this->getWeight());
 }