resetPasswordValidation = $resetPasswordValidation; $this->passwordResetTokenExists = $passwordResetTokenExists; } /** * @return bool */ protected function authorized($object): bool { return true; } /** * @param PasswordResetObject $object * @return bool * @throws RequestValidationException */ protected function validators($object): bool { return $this->resetPasswordValidation->validate($object); } /** * @param PasswordResetObject $object * @return bool * @throws ResourceNotFoundException */ protected function criteria($object): bool { return $this->passwordResetTokenExists->execute($object->getToken()); } }