protected function signUrl(UrlImmutable $url, $expiration, $signature)
    {
        $query = $url->getQuery();

        $query->modify([
            $this->expiresParameter   => $expiration,
            $this->signatureParameter => $signature,
        ]);

        $urlSigner = $url->setQuery($query);

        return $urlSigner;
    }
protected function signUrl(UrlImmutable $url, $expiration, $signature)
    {
        $query = $url->getQuery();

        $query->modify([
            $this->expiresParameter   => $expiration,
            $this->signatureParameter => $signature,
        ]);

        $urlSigner = $url->setQuery($query);

        return $urlSigner;
    }
protected function signUrl ( UrlImmutable $ url , $ expiration , $ signature ) { $ query = $ url -> getQuery ( ) ; $ query -> modify ( [ $ this -> expiresParameter => $ expiration , $ this -> signatureParameter => $ signature , ] ) ; $ urlSigner = $ url -> setQuery ( $ query ) ; return $ urlSigner ; }
Add expiration and signature query parameters to an url.

@param \League\Url\UrlImmutable $url
@param string                   $expiration
@param string                   $signature

@return \League\Url\UrlImmutable
Add expiration and signature query parameters to an url .