src/Curl/Curl.php
private function init()
    {
        $this->curl = curl_init();
        $this->setUserAgent(self::USER_AGENT);
        $this->setOpt(CURLINFO_HEADER_OUT, true);
        $this->setOpt(CURLOPT_HEADER, false);
        $this->setOpt(CURLOPT_RETURNTRANSFER, true);
        $this->setOpt(CURLOPT_HEADERFUNCTION, array($this, 'addResponseHeaderLine'));
        return $this;
    }
private function init()
    {
        $this->curl = curl_init();
        $this->setUserAgent(self::USER_AGENT);
        $this->setOpt(CURLINFO_HEADER_OUT, true);
        $this->setOpt(CURLOPT_HEADER, false);
        $this->setOpt(CURLOPT_RETURNTRANSFER, true);
        $this->setOpt(CURLOPT_HEADERFUNCTION, array($this, 'addResponseHeaderLine'));
        return $this;
    }
private function init ( ) { $ this -> curl = curl_init ( ) ; $ this -> setUserAgent ( self :: USER_AGENT ) ; $ this -> setOpt ( CURLINFO_HEADER_OUT , true ) ; $ this -> setOpt ( CURLOPT_HEADER , false ) ; $ this -> setOpt ( CURLOPT_RETURNTRANSFER , true ) ; $ this -> setOpt ( CURLOPT_HEADERFUNCTION , array ( $ this , 'addResponseHeaderLine' ) ) ; return $ this ; }
Initializer for the curl resource.

Is called by the __construct() of the class or when the curl request is reset.
@return self
Initializer for the curl resource .