public function getHandlers($signal)
    {
        $signalNumber = $this->translateSignal($signal);
        $handlers = [];
        if (isset($this->handlers[$signalNumber])) {
            $handlers = $this->handlers[$signalNumber];
        }

        return $handlers;
    }
public function getHandlers($signal)
    {
        $signalNumber = $this->translateSignal($signal);
        $handlers = [];
        if (isset($this->handlers[$signalNumber])) {
            $handlers = $this->handlers[$signalNumber];
        }

        return $handlers;
    }
public function getHandlers ( $ signal ) { $ signalNumber = $ this -> translateSignal ( $ signal ) ; $ handlers = [ ] ; if ( isset ( $ this -> handlers [ $ signalNumber ] ) ) { $ handlers = $ this -> handlers [ $ signalNumber ] ; } return $ handlers ; }
Returns handlers of a specific signal.

@param int|string $signal

@return array
Returns handlers of a specific signal .