CommandStack
in package
Command stack entity
Table of Contents
Properties
Methods
- addCommand() : void
- Adds a command in to the stack
- clearCommands() : void
- Clears the stack
- getCommands() : array<string|int, Command>
- Returns commands in the stack
Properties
$commands
private
array<string|int, Command>
$commands
= []
Commands
Methods
addCommand()
Adds a command in to the stack
public
addCommand(Command $command) : void
Parameters
- $command : Command
-
Command to add
clearCommands()
Clears the stack
public
clearCommands() : void
getCommands()
Returns commands in the stack
public
getCommands() : array<string|int, Command>
Return values
array<string|int, Command> —Commands in the stack