PHP 클래스 izzum\command\Composite

저자: Rolf Vreijdenberger
상속: extends Command, implements izzum\command\IComposite
파일 보기 프로젝트 열기: rolfvreijdenberger/izzum-statemachine 1 사용 예제들

공개 메소드들

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