Set the host

@param string $host
8030
protected function setHost($host)
    {
        $host = strtolower($host);
        
        if ($host !== '' && !$this->isValidDomain($host) && !$this->isValidIpv4($host) && !$this->isValidIpv6($host)) {
            throw new \InvalidArgumentException("Invalid hostname '$host'");
        }
        
        $this->host = $host;
    }
534053
public function setHost($host = null)
    {
        if ($host === null) {
            $host = '127.0.0.1';
        }

        if (substr($host, 0, 6) == 'ssl://') {
            $this->_protocol = 'ssl';
            $this->_secure = 'ssl';
            $host = substr($host, 6);
        }
        $this->_host = $host;
    }
63797
public function setPeername($host, $port)
    {
        $this->host = $host;
        $this->port = $port;
        $this->addr = '[' . $this->host . ']:' . $this->port;
        if ($this->pool->allowedClients !== null) {
            if (!TCP::netMatch($this->pool->allowedClients, $this->host)) {
                Daemon::log('Connection is not allowed (' . $this->host . ')');
                $this->ready = false;
                $this->finish();
            }
        }
    }
851909
public function assertHostIsNot($host)
    {
        $actual = parse_url($this->driver->getCurrentURL(), PHP_URL_HOST) ?? '';

        PHPUnit::assertNotEquals(
            $host, $actual,
            "Host [{$host}] should not equal the actual value."
        );

        return $this;
    }
719769
protected function prepareHost($scheme, $host)
    {
        $host = $this->stripScheme($host);

        if (substr($host, -1) === "/") {
            $host = substr($host, 0, -1);
        }

        return $scheme . $host;
    }
990050
public function blockOne($host)
    {
        return $this->exists($host)
            ? $this->updateOne($host)
            : $this->addOne($host);
    }
1116702
public function addHost($host, $name = null) {
		$host = $this->normalizeHost($host);
		
		if ($host->hasUsername()) {
			$this->setUsername($host->getUsername());
			$host->removeUsername();
			
			if ($host->hasPassword()) {
				$this->setPassword($host->getPassword());
				$host->removePassword();
			}
		}
		
		if ($host->hasPath()) {
			$this->setDBName(trim($host->getPath(), '/'));
			$host->removePath();
		}
		
		$host->removeScheme();
		
		if ($name === null) {
			$this->hosts[] = $host;
			return $this;
		}
		
		$this->hosts[$name] = $host;
		return $this;
	}
1342564
public function withProxy(string $host, int $port): self
    {
        $this->proxy = [
            'http_proxy_host' => $host,
            'http_proxy_port' => $port,
        ];

        return $this;
    }
192297
public function setDomain( $domain )
	{
		if ( $domain == $this->getDomain() ) { return; }

		$this->_values['domain'] = (string) $domain;
		$this->setModified();
	}
28564
public function setHost(Host $host)
    {
        $this->host = $host;

        if ($this->status != self::STATUS_NEW) {
            throw new \RuntimeException('Cannot set worker host after worker has started working');
        }
    }
1105
public function setHost($host)
    {
        if (! (self::_isHostname($host) || self::_isIpAddress($host))) {

            throw new InvalidArgumentException("Invalid host ($host)");
        }

        $this->_host = strtolower(trim($host));
    }
1220926
public function allowOne($host)
    {
        return $this->exists($host)
            ? $this->updateOne($host, false)
            : $this->addOne($host, false);
    }
1338935
public function setHost($host, $port = null) {
		$this->host = (string) $host;
		
		if ($port !== null) {
			$this->setPort($port);
		}
		
		return $this;
	}
915167
public function setHost($host)
    {
        try {
            $host = new StringObject($host);
        } catch (\Exception $e) {
            throw new UrlObjectException($e->getMessage());
        }

        $this->host = $host->stripTrailingSlash()->trim()->val();

        $this->rebuildUrl();

        return $this;
    }
491987
public function removeHost($host)
    {
        $ips = $this->getIp($host);
        unset($this->hosts[$host]);
        foreach ($ips as $ip) {
            unset($this->ips[$ip][$host]);
        }
    }
682676
public function setConsumerHost($host)
    {
        $host = rtrim($host, '/');
        $this->_settings->spReturnUrl = $host . Maestrano::with($this->_preset)->param('sso.consume_path');
    }
371294
public function setHost($host)
  {
    if ($this->isLocked()) {
      return $this->getObj()->setHost($host)->setLocked();
    } else {
      return parent::setHost($host);
    }
  }