public function getPath()
    {
        if ($this->requestTarget === null) {
            return $this->uri->getPath();
        }

        list($path) = explode('?', $this->requestTarget);

        return $path;
    }
public function getPath()
    {
        if ($this->requestTarget === null) {
            return $this->uri->getPath();
        }

        list($path) = explode('?', $this->requestTarget);

        return $path;
    }
public function getPath ( ) { if ( $ this -> requestTarget === null ) { return $ this -> uri -> getPath ( ) ; } list ( $ path ) = explode ( '?' , $ this -> requestTarget ) ; return $ path ; }
Get the path of current request.

@return string
@since 3.6.1
Get the path of current request .