public function __destruct() { if (!$this->_isConnected) { return; } $this->disconnect(); $this->_db = false; unset($this->connection); }