public function withURL ($url)
    {
        if (filter_var($url, FILTER_VALIDATE_URL) === false) {
            throw new InvalidArgumentException("invalid url `{$url}` given for news item");
        }

        $new = clone $this;
        $new->url = $url;

        return $new;
    }
public function withURL ($url)
    {
        if (filter_var($url, FILTER_VALIDATE_URL) === false) {
            throw new InvalidArgumentException("invalid url `{$url}` given for news item");
        }

        $new = clone $this;
        $new->url = $url;

        return $new;
    }
public function withURL ( $ url ) { if ( filter_var ( $ url , FILTER_VALIDATE_URL ) === false ) { throw new InvalidArgumentException ( "invalid url `{$url}` given for news item" ) ; } $ new = clone $ this ; $ new -> url = $ url ; return $ new ; }
Populates the URL to be used when clicking on "View more" in an article.

@param string $url

@return static
@throws InvalidArgumentException
Populates the URL to be used when clicking on View more in an article .