public function getBadLoginCount(IWebUser $user) { return (int) $user->getState($this->badLoginCount, 0); }