PHP 인터페이스 izzum\command\IComposite

MacroCommand. It extends ICommand and therefore functions as a command(with execute())
저자: Rolf Vreijdenberger
상속: extends izzum\command\ICommand
파일 보기 프로젝트 열기: rolfvreijdenberger/izzum-statemachine

공개 메소드들

메소드 설명
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