Back to FtpClient class

Method __destruct

public
__destruct
()
FtpClient object destructor
Since
  • 1.5
Class: FtpClient
Project: Joomla

Method __destruct - Source code

/**
 * FtpClient object destructor
 *
 * Closes an existing connection, if we have one
 *
 * @since   1.5
 */
public function __destruct()
{
    if (\is_resource($this->_conn)) {
        $this->quit();
    }
}