PHP Класс izzum\command\Composite

Автор: Rolf Vreijdenberger
Наследование: extends Command, implements izzum\command\IComposite
Показать файл Открыть проект Примеры использования класса

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

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

Защищенные методы

Метод Описание
_execute ( ) this method will call all commands added to this class in order of addition

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

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

public __construct ( )

_execute() защищенный Метод

this method will call all commands added to this class in order of addition
protected _execute ( )

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

this method can be used to add multiple commands that will be used in the execute() method
public add ( izzum\command\ICommand $command )
$command izzum\command\ICommand

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

does this contain a command (based on identity ===)
public contains ( izzum\command\ICommand $command ) : boolean
$command izzum\command\ICommand
Результат boolean

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

(non-PHPdoc)
См. также: izzum\IComposite::count()
public count ( )

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

Removes a command if it is part of the composite (based on identity ===)
public remove ( izzum\command\ICommand $command ) : boolean
$command izzum\command\ICommand
Результат boolean

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

public toString ( )