protected function onFinish() { }
/** * Called when connection finishes * @return void */ public function onFinish() { if (!$this->connected) { if ($this->onConnected) { $this->onConnected->executeAll($this); $this->onConnected = null; } } parent::onFinish(); }