Jyxo\Mail\Sender\Smtp::disconnect PHP Метод

disconnect() публичный Метод

Disconnects from server.
public disconnect ( ) : self
Результат self
    public function disconnect() : self
    {
        if (is_resource($this->connection)) {
            try {
                $this->reset();
                $this->writeData('QUIT');
                fclose($this->connection);
                $this->connection = null;
            } catch (\Exception $e) {
                // Disconnecting; ignore possible exceptions
            }
        }
        return $this;
    }