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 []; } }