public function validate($url)
    {
        $url = UrlImmutable::createFromUrl($url);

        $query = $url->getQuery();

        if ($this->isMissingAQueryParameter($query)) {
            return false;
        }

        $expiration = $query[$this->expiresParameter];

        if (!$this->isFuture($expiration)) {
            return false;
        }

        if (!$this->hasValidSignature($url)) {
            return false;
        }

        return true;
    }
public function validate($url)
    {
        $url = UrlImmutable::createFromUrl($url);

        $query = $url->getQuery();

        if ($this->isMissingAQueryParameter($query)) {
            return false;
        }

        $expiration = $query[$this->expiresParameter];

        if (!$this->isFuture($expiration)) {
            return false;
        }

        if (!$this->hasValidSignature($url)) {
            return false;
        }

        return true;
    }
public function validate ( $ url ) { $ url = UrlImmutable :: createFromUrl ( $ url ) ; $ query = $ url -> getQuery ( ) ; if ( $ this -> isMissingAQueryParameter ( $ query ) ) { return false ; } $ expiration = $ query [ $ this -> expiresParameter ] ; if ( ! $ this -> isFuture ( $ expiration ) ) { return false ; } if ( ! $ this -> hasValidSignature ( $ url ) ) { return false ; } return true ; }
Validate a signed url.

@param string $url

@return bool
Validate a signed url .