src/danog/MadelineProto/Stream/ConnectionContext.php
public function setUri($uri): self
    {
        $this->uri = $uri instanceof Uri ? $uri : new Uri($uri);

        return $this;
    }
public function setUri($uri): self
    {
        $this->uri = $uri instanceof Uri ? $uri : new Uri($uri);

        return $this;
    }
public function setUri ( $ uri ) : self { $ this -> uri = $ uri instanceof Uri ? $ uri : new Uri ( $ uri ) ; return $ this ; }
Set the connection URI.

@param string|\Amp\Uri\Uri $uri

@return self
Set the connection URI .