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