public function setUrl($url)
    {
        if (!filter_var($url, FILTER_VALIDATE_URL))
        {
            throw new InvalidDataException('Invalid url link');
        }

        $this->url = $url;

        return $this;
    }
public function setUrl($url)
    {
        if (!filter_var($url, FILTER_VALIDATE_URL))
        {
            throw new InvalidDataException('Invalid url link');
        }

        $this->url = $url;

        return $this;
    }
public function setUrl ( $ url ) { if ( ! filter_var ( $ url , FILTER_VALIDATE_URL ) ) { throw new InvalidDataException ( 'Invalid url link' ) ; } $ this -> url = $ url ; return $ this ; }
Set an url to take a shot

@param $url
@throws InvalidDataException
@return $this
Set an url to take a shot