/** * Close the connection * * @return void */ public function close() { if (null !== $this->socket) { $this->socket->close(); } }