lithium\data\source\http\adapter\CouchDb::__destruct PHP Méthode

__destruct() public méthode

Destructor. Ensures that the server connection is closed and resources are freed when the adapter instance is destroyed.
public __destruct ( ) : void
Résultat void
    public function __destruct()
    {
        if (!$this->_isConnected) {
            return;
        }
        $this->disconnect();
        $this->_db = false;
        unset($this->connection);
    }