SignalableCommandInterface
in
Interface for command reacting to signal.
Tags
Table of Contents
- getSubscribedSignals() : array<string|int, mixed>
- Returns the list of signals to subscribe.
- handleSignal() : void
- The method will be called when the application is signaled.
Methods
getSubscribedSignals()
Returns the list of signals to subscribe.
public
getSubscribedSignals() : array<string|int, mixed>
Return values
array<string|int, mixed> —handleSignal()
The method will be called when the application is signaled.
public
handleSignal(int $signal) : void
Parameters
- $signal : int