ConsoleCommandSignal
extends Signal
in package
Table of Contents
Properties
- $commandParts : array<string|int, string>
- The command parts simply split by spaces
- $commandString : string
- The full string that was entered
- $console : DebugConsole
- An instance of the debug console that dispatched the signal
Methods
- __construct() : mixed
- Constructor
- isAction() : bool
- Returns boolean if the first command part matches the given string
- isPropagationStopped() : bool
- Has the propagation been stopped?
- stopPropagation() : void
- Stop the propagation of the signal
Properties
$commandParts read-only
The command parts simply split by spaces
public
array<string|int, string>
$commandParts
$commandString read-only
The full string that was entered
public
string
$commandString
$console read-only
An instance of the debug console that dispatched the signal
public
DebugConsole
$console
Methods
__construct()
Constructor
public
__construct(string $commandString, DebugConsole $console) : mixed
Parameters
- $commandString : string
- $console : DebugConsole
isAction()
Returns boolean if the first command part matches the given string
public
isAction(string $command) : bool
Parameters
- $command : string
Return values
boolisPropagationStopped()
Has the propagation been stopped?
public
isPropagationStopped() : bool
Return values
boolstopPropagation()
Stop the propagation of the signal
public
stopPropagation() : void