public function getUri(): UriInterface
    {
        $uri = $this->reference->getUri();

        if ($this->sorter) {
            $uri = $this->sorter->modifyUri($uri);
        }

        foreach ($this->filters as $filter) {
            $uri = $filter->modifyUri($uri);
        }

        return $uri;
    }
public function getUri(): UriInterface
    {
        $uri = $this->reference->getUri();

        if ($this->sorter) {
            $uri = $this->sorter->modifyUri($uri);
        }

        foreach ($this->filters as $filter) {
            $uri = $filter->modifyUri($uri);
        }

        return $uri;
    }
public function getUri ( ) : UriInterface { $ uri = $ this -> reference -> getUri ( ) ; if ( $ this -> sorter ) { $ uri = $ this -> sorter -> modifyUri ( $ uri ) ; } foreach ( $ this -> filters as $ filter ) { $ uri = $ filter -> modifyUri ( $ uri ) ; } return $ uri ; }
Returns the absolute URL for this location.

This method returns a URL that is ready to be put into a browser, curl command, or a
{@see Database::getReferenceFromUrl()} call. Since all of those expect the URL
to be url-encoded, toString() returns an encoded URL.

Append '.json' to the URL when typed into a browser to download JSON formatted data.
If the location is secured (not publicly readable) you will get a permission-denied error.

@return UriInterface
Returns the absolute URL for this location .