Lw\Application\Service\Wish\AggregateVersion\WishService::getUser PHP Method

getUser() protected method

protected getUser ( string $userId ) : User
$userId string
return Lw\Domain\Model\User\User
    protected function getUser($userId)
    {
        $user = $this->userRepository->ofId(new UserId($userId));
        if (null === $user) {
            throw new UserDoesNotExistException();
        }
        return $user;
    }