public function getInfo(int $opt = null)
    {
        if ($opt === null) {
            return curl_getinfo($this->curl);
        }

        return curl_getinfo($this->curl, $opt);
    }
public function getInfo(int $opt = null)
    {
        if ($opt === null) {
            return curl_getinfo($this->curl);
        }

        return curl_getinfo($this->curl, $opt);
    }
public function getInfo ( int $ opt = null ) { if ( $ opt === null ) { return curl_getinfo ( $ this -> curl ) ; } return curl_getinfo ( $ this -> curl , $ opt ) ; }
Returns information about the last transfer.

If opt is given, its value is returned. If opt is not recognized, false is returned.
Otherwise, an associative array of values is returned.

@param int $opt One of the CURLINFO_* constants.

@return mixed
Returns information about the last transfer .