Method | Description | |
---|---|---|
__construct ( ) | ||
add ( izzum\command\ICommand $command ) | this method can be used to add multiple commands that will be used in the execute() method | |
contains ( izzum\command\ICommand $command ) : boolean | does this contain a command (based on identity ===) | |
count ( ) | (non-PHPdoc) | |
remove ( izzum\command\ICommand $command ) : boolean | Removes a command if it is part of the composite (based on identity ===) | |
toString ( ) |
Method | Description | |
---|---|---|
_execute ( ) | this method will call all commands added to this class in order of addition |
protected _execute ( ) |
public add ( izzum\command\ICommand $command ) | ||
$command | izzum\command\ICommand |