Lw\Application\Service\Wish\WishService::findUserOrFail PHP Method

findUserOrFail() protected method

protected findUserOrFail ( $userId )
    protected function findUserOrFail($userId)
    {
        $user = $this->userRepository->ofId(new UserId($userId));
        if (null === $user) {
            throw new UserDoesNotExistException();
        }
        return $user;
    }