Remote::__construct PHP Method

__construct() public method

Constructor
public __construct ( string $url, array $options = [] )
$url string
$options array
    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();
    }