PHP Интерфейс izzum\command\IComposite

MacroCommand. It extends ICommand and therefore functions as a command(with execute())
Автор: Rolf Vreijdenberger
Наследование: extends izzum\command\ICommand
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

add() публичный Метод

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() публичный Метод

checks if a certain command is present.
public contains ( izzum\command\ICommand $command ) : boolean
$command izzum\command\ICommand
Результат boolean true if the command is in the composite.

count() публичный Метод

how many commands does this composite contain?\
public count ( ) : integer
Результат integer

remove() публичный Метод

remove a command from the composite
public remove ( izzum\command\ICommand $command ) : boolean
$command izzum\command\ICommand
Результат boolean whether or not the removal was succesful