where($this->getPKField(), $uid); return $this->getEntity(); } public function getEntityByID(string $id): null|UserEntity { $this->where('user_id', $id); return $this->getEntity(); } //create용 public function create(array $formDatas = []): UserEntity { return $this->create_process(new UserEntity(), $formDatas); } //modify용 public function modify(UserEntity $entity, array $formDatas): UserEntity { return $this->modify_process($entity, $formDatas); } public function getEntityByLoginCheck(string $id, string $password): null|UserEntity { $this->where('user_id', $id); $this->where('passwd', password_hash($password, PASSWORD_DEFAULT)); return $this->getEntity(); } }