public function get($targetName)
    {
        if (InstallTarget::DEFAULT_TARGET === $targetName) {
            return $this->getDefaultTarget();
        }

        if (!isset($this->targets[$targetName])) {
            throw NoSuchTargetException::forTargetName($targetName);
        }

        return $this->targets[$targetName];
    }