VISU - PHP Game Framework

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

Methods

isAction()

Returns boolean if the first command part matches the given string

public isAction(string $command) : bool
Parameters
$command : string
Return values
bool

isPropagationStopped()

Has the propagation been stopped?

public isPropagationStopped() : bool
Return values
bool

stopPropagation()

Stop the propagation of the signal

public stopPropagation() : void

        
On this page

Search results