public function __construct($url, $options = array()) { // set all options $this->options = array_merge(static::$defaults, $options); // add the url $this->options['url'] = $url; // send the request $this->send(); }