protected function getResult() { /* * Es ist jedoch zu beachten, dass Kontonummern, die * kleiner als 9-stellig sind,[…] als richtig behandelt werden. */ $trimedAccount = ltrim($this->account, "0"); if (strlen($trimedAccount) < 9) { return !empty($trimedAccount) && true; } return parent::getResult(); }
protected function getResult() { if (parent::getResult()) { return true; } elseif (strlen(ltrim($this->account, '0')) == 6) { $nextHalfDecade = round($this->accumulator / 10) * 10 + 5; $check = ($nextHalfDecade - $this->accumulator) % 10; return (string) $check === $this->getChecknumber(); } else { return false; } }
/** * @return bool */ protected function getResult() { return $this->account[0] === '0' || $this->account[4] === '1' || parent::getResult(); }
protected function getResult() { return (int) $this->account < 60000 ? true : parent::getResult(); }