public function setBase(UriInterface $uri)
    {
        if (! $this->parser->isAbsolute($uri)) {
            throw new InvalidArgumentException('The base URI must be absolute.');
        }

        $this->base = $uri;

        return $this;
    }
public function setBase(UriInterface $uri)
    {
        if (! $this->parser->isAbsolute($uri)) {
            throw new InvalidArgumentException('The base URI must be absolute.');
        }

        $this->base = $uri;

        return $this;
    }
public function setBase ( UriInterface $ uri ) { if ( ! $ this -> parser -> isAbsolute ( $ uri ) ) { throw new InvalidArgumentException ( 'The base URI must be absolute.' ) ; } $ this -> base = $ uri ; return $ this ; }
Set the base URI.

@param \Psr\Http\Message\UriInterface $uri

@return \Risan\OAuth1\Config\UriConfig

@throws \InvalidArgumentException
Set the base URI .