Use or not WWW prefix for domain

@param bool $www
@return $this
359933
public function setWww( bool $www = true )
	{
		$this->www = $www;
		$this->invoke("www", $www);
		return $this;
	}
580226
public function setDomain(?string $domain) : Cookie
    {
        if ($domain !== null) {
            $domain = (string) $domain;
        }

        $this->domain = $domain;

        return $this;
    }
811921
public function setTablePrefix($prefix)
    {
        $this->tablePrefix = $prefix;

        $this->getQueryGrammar()->setTablePrefix($prefix);

        return $this;
    }
606588
public function setDomainUrl($domainUrl = '')
    {
        $this->domainUrl = $domainUrl;
        $this->debug->debug(__FUNCTION__, 'setDomainUrl: ' . json_encode($this->domainUrl));

        return $this;
    }
1252124
public function addDomain(Domain $domain)
    {
        if ($this->domains->contains($domain)) {
            return $this;
        }

        $this->domains[] = $domain;

        return $this;
    }
959644
public function prefix($prefix = '') {
        if (empty($prefix) && null !== $prefix) {
            return $this->prefix;
        }
        else {
            $this->prefix = $prefix;
        }
    }
799761
public function setWebMaster(string $webMaster): self
    {
        if (!strstr($webMaster, '@')) {
            $this->webMaster = 'nospam@example.com (' . $webMaster . ')';
        } else {
            $this->webMaster = $webMaster;
        }

        return $this;
    }
1294750
protected function setPrefix($prefix)
    {
        if (is_string($prefix)) {
            $this->prefix = $prefix;

            return $this;
        } else {
            throw new \InvalidArgumentException(
                "Invalid type '" . gettype($prefix). "' for argument 'prefix' given."
            );
        }
    }
894604
public function removeHttpBasic($domain)
    {
        $this->remove(self::HTTP_BASIC_KEY . '/' . $this->escape($domain));

        return $this;
    }
650980
public function getDomain() : ?string 
    {
        if ( ! $this->hasDomain()) {
            $this->setDomain($this->getDefaultDomain());
        }
        return $this->domain;
    }
831784
public function setHttpBasic($username, $password, $domain)
    {
        $this->set(
            self::HTTP_BASIC_KEY . '/' . $this->escape($domain),
            ['username' => $username, 'password' => $password]
        );

        return $this;
    }
970445
public function setPrefix($prefix)
    {
        $prefix = "/" . ltrim($prefix, "/");
        $routes = [];
        foreach ($this->routes as $route)
            $routes[] = $route->setPattern(rtrim($prefix . $route->getPattern(), "/"));
        $this->routes = $routes;
        return $this;
    }
1173210
public function setDomain($domain)
    {
        try {
            $this->domain = (string) $domain;
        } catch (Exception $e) {
            throw new InvalidArgumentException(
                'Value provided as domain is not a string'
            );
        }

        return $this;
    }
475186
public function setUrl($url)
    {
        $url = parse_url($url);

        $this->setHost($url['host']);

        if(isset($url['port']))
        {
            $this->setPort($url['port']);
        }

        return $this;
    }
1287250
public function setPrefix($prefix)
    {
        switch ($prefix) {
            case 'a': //Access
            case 'c': //Company
            case 'u': //User
            case 'g': //License Groups
            case 'admin':
            case 'status':
            case 'login-logout':
                $this->prefix = '/'.$prefix.'/';
                break;
            case null:
            case '':
            case '/':
                $this->prefix = '';
                break;
            default:
                throw new \Exception(sprintf('Unknown prefix %s', $prefix));
        }
    }
854210
public function setDomain(Domain $domain)
    {
        $this->domain = $domain;
        $this->domainId = $domain->getDomainId();
    }
662648
public function removeDomain($domain)
    {
        if (isset($this->domains[$domain])) {
            unset($this->domains[$domain]);
        }

        return $this;
    }