generatePasswordResetValidation = $generatePasswordResetValidation; $this->userEmailExists = $userEmailExists; } /** * @return bool */ protected function authorized(): bool { return true; } /** * @param GeneratePasswordResetObject $object * @return bool * @throws RequestValidationException */ protected function validators($object): bool { return $this->generatePasswordResetValidation->validate($object); } /** * @param GeneratePasswordResetObject $object * @return bool * @throws ResourceNotFoundException */ protected function criteria($object): bool { return $this->userEmailExists->execute($object->getEmail()); } }