protected function realSetPath($path, $relative)
    {
        if (!is_string($path) || !$this->validatePath($path, $relative)) {
            throw new \InvalidArgumentException(
                'Invalid path; use relative() for relative paths'
            );
        }
        $this->path = $path;
    }
protected function realSetPath($path, $relative)
    {
        if (!is_string($path) || !$this->validatePath($path, $relative)) {
            throw new \InvalidArgumentException(
                'Invalid path; use relative() for relative paths'
            );
        }
        $this->path = $path;
    }
protected function realSetPath ( $ path , $ relative ) { if ( ! is_string ( $ path ) || ! $ this -> validatePath ( $ path , $ relative ) ) { throw new \ InvalidArgumentException ( 'Invalid path; use relative() for relative paths' ) ; } $ this -> path = $ path ; }
Sets the current URI's path.

\param string $path
New path for this URI.

\param bool $relative
Whether the given $path is relative (\b true)
or not (\b false).

\throw ::InvalidArgumentException
The given $path is not valid.
Sets the current URI s path .