public function signalReceived($signal) { if (!$this->tryCall($this->formatSignalMethod($signal), $this->params)) { $class = get_class($this); throw new BadSignalException("There is no handler for signal '{$signal}' in class {$class}."); } }