private function _closeTransport() { if ($this->transport->isOpen()) { $this->transport->close(); } }
public function close() { $this->transport_->close(); }
/** * Forces the connection to close. * * Generally there's no need to call it yourself as it will be closed on * termination. */ public function close() { if ($this->isOpen) { $this->transport->flush(); $this->transport->close(); $this->isOpen = false; } }