public function closeClient(IRCClient $client) { socket_shutdown($client->getSocket()); socket_close($client->getSocket()); unset($this->clients[array_search($client, $this->clients)]); }
public function __destruct() { parent::__destruct(); }