Pop\Curl\Curl::__construct PHP Метод

__construct() публичный Метод

Instantiate the cURL object.
public __construct ( string $url, array $opts = null ) : Curl
$url string
$opts array
Результат Curl
    public function __construct($url, array $opts = null)
    {
        $this->curl = curl_init();
        $this->setOption(CURLOPT_URL, $url);
        $this->setOption(CURLOPT_HEADER, true);
        $this->setOption(CURLOPT_RETURNTRANSFER, true);
        if (null !== $opts) {
            $this->setOption($opts);
        }
    }