public function handleSignal($signo) { if ($signo === SIGTERM or $signo === SIGINT or $signo === SIGHUP) { $this->shutdown(); } }