PHP Interface izzum\command\IComposite

MacroCommand. It extends ICommand and therefore functions as a command(with execute())
Author: Rolf Vreijdenberger
Inheritance: extends izzum\command\ICommand
Show file Open project: rolfvreijdenberger/izzum-statemachine

Public Methods

Method Description
add ( izzum\command\ICommand $command ) add a command to the composite, to be executed in the sequence of commands
contains ( izzum\command\ICommand $command ) : boolean checks if a certain command is present.
count ( ) : integer how many commands does this composite contain?\
remove ( izzum\command\ICommand $command ) : boolean remove a command from the composite

Method Details

add() public method

add a command to the composite, to be executed in the sequence of commands
public add ( izzum\command\ICommand $command )
$command izzum\command\ICommand

contains() public method

checks if a certain command is present.
public contains ( izzum\command\ICommand $command ) : boolean
$command izzum\command\ICommand
return boolean true if the command is in the composite.

count() public method

how many commands does this composite contain?\
public count ( ) : integer
return integer

remove() public method

remove a command from the composite
public remove ( izzum\command\ICommand $command ) : boolean
$command izzum\command\ICommand
return boolean whether or not the removal was succesful