linslin\yii2\curl\Curl::getInfo PHP Method

getInfo() public method

Get curl info according to http://php.net/manual/de/function.curl-getinfo.php
public getInfo ( null $opt = null ) : array | mixed
$opt null
return array | mixed
    public function getInfo($opt = null)
    {
        if ($this->_curl !== null && $opt === null) {
            return curl_getinfo($this->_curl);
        } elseif ($this->_curl !== null && $opt !== null) {
            return curl_getinfo($this->_curl, $opt);
        } else {
            return [];
        }
    }