public function getPath(UriInterface $uri)
    {
        $path  = trim($uri->getPath(), '/');
        $parts = explode('/', $path);

        if ($parts[0] === 'v'.Client::API_VERSION) {
            unset($parts[0]);
        }

        return '/'.implode('/', $parts);
    }
public function getPath(UriInterface $uri)
    {
        $path  = trim($uri->getPath(), '/');
        $parts = explode('/', $path);

        if ($parts[0] === 'v'.Client::API_VERSION) {
            unset($parts[0]);
        }

        return '/'.implode('/', $parts);
    }
public function getPath ( UriInterface $ uri ) { $ path = trim ( $ uri -> getPath ( ) , '/' ) ; $ parts = explode ( '/' , $ path ) ; if ( $ parts [ 0 ] === 'v' . Client :: API_VERSION ) { unset ( $ parts [ 0 ] ) ; } return '/' . implode ( '/' , $ parts ) ; }
Gets the path from a ``UriInterface`` instance after removing the version
prefix.

@param UriInterface $uri

@return string
Gets the path from a UriInterface instance after removing the version prefix .