addClassName('Local'); } final public function getModelClass(): UserModel { return new UserModel(); } final public function getEntityClass(): UserEntity { return new UserEntity(); } public function checkUser(array $formDatas): UserEntity { $entity = $this->getEntity(['id' => $formDatas['id'], 'status' => DEFAULTS['STATUS']]); if (!password_verify($formDatas['passwd'], $entity->getPassword())) { // log_message("error", "암호: {$formDatas['passwd']}, {$entity->passwd}"); throw new \Exception("암호가 맞지 않습니다."); } return $entity; } }