src/Response/AbstractResponse.php
protected function extractInfo($curlResource)
    {
        $this->info = curl_getinfo($curlResource);
        foreach(static::$_CURL_EXTRA_INFO as $option){
            $this->info[$option] = curl_getinfo($curlResource,$option);
        }
        $this->status = $this->info['http_code'];
    }
protected function extractInfo($curlResource)
    {
        $this->info = curl_getinfo($curlResource);
        foreach(static::$_CURL_EXTRA_INFO as $option){
            $this->info[$option] = curl_getinfo($curlResource,$option);
        }
        $this->status = $this->info['http_code'];
    }
protected function extractInfo ( $ curlResource ) { $ this -> info = curl_getinfo ( $ curlResource ) ; foreach ( static :: $ _CURL_EXTRA_INFO as $ option ) { $ this -> info [ $ option ] = curl_getinfo ( $ curlResource , $ option ) ; } $ this -> status = $ this -> info [ 'http_code' ] ; }
Extract the information from the Curl Request via curl_getinfo
Setup the Status property to be equal to the http_code
@param $curlResource - cURL Resource
Extract the information from the Curl Request via curl_getinfo Setup the Status property to be equal to the http_code