protected function getUriInterface($uri)
    {
        if ($uri instanceof UriInterface) {
            return UriInterface::class;
        }

        if ($uri instanceof Uri) {
            return Uri::class;
        }

        throw Exception::fromInvalidUri($uri);
    }
protected function getUriInterface($uri)
    {
        if ($uri instanceof UriInterface) {
            return UriInterface::class;
        }

        if ($uri instanceof Uri) {
            return Uri::class;
        }

        throw Exception::fromInvalidUri($uri);
    }
protected function getUriInterface ( $ uri ) { if ( $ uri instanceof UriInterface ) { return UriInterface :: class ; } if ( $ uri instanceof Uri ) { return Uri :: class ; } throw Exception :: fromInvalidUri ( $ uri ) ; }
Returns the URI object interface

@param Uri|UriInterface $uri

@throws Exception if the submitted URI object is invalid

@return string
Returns the URI object interface