PHP 인터페이스 izzum\command\ICommand

저자: Rolf Vreijdenberger
파일 보기 프로젝트 열기: rolfvreijdenberger/izzum-statemachine 0 사용 예제들

공개 메소드들

메소드 설명
execute ( ) The execute method which is executed somewhere at runtime when the command is invoked.
toString ( ) gives a string representation of the instance

메소드 상세

execute() 공개 메소드

Traditionally you should not provide any context to the execute method, as this implies knowledge of where the command is invoked. Any context should be provided at command creation time via dependency injection. The context provided might know how to get additional information at execution time from objects it knows about. Context provided can also be a mock (for unittesting)
public execute ( )

toString() 공개 메소드

gives a string representation of the instance
public toString ( )