Copied!

Interface for command reacting to signal.

AbstractInterface
Methods
public abstract getSubscribedSignals() : array
 

Returns the list of signals to subscribe.

  • @return
  • see https://php.net/pcntl.constantsfor signals
public abstract handleSignal(int $signal, int|false $previousExitCode = 0) : int|false
 

The method will be called when the application is signaled.

  • return int|false The exit code to return or false to continue the normal execution
© 2025 Bruce Wells