public function withHost(string $host): self
    {
        if ('/' === \mb_substr($host, -1)) {
            $host = \mb_substr($host, 0, -1);
        }

        $this->host = $host;

        return $this;
    }
public function withHost(string $host): self
    {
        if ('/' === \mb_substr($host, -1)) {
            $host = \mb_substr($host, 0, -1);
        }

        $this->host = $host;

        return $this;
    }
public function withHost ( string $ host ) : self { if ( '/' === \ mb_substr ( $ host , - 1 ) ) { $ host = \ mb_substr ( $ host , 0 , - 1 ) ; } $ this -> host = $ host ; return $ this ; }
@param string $host

@return self
@param string $host