PHP 인터페이스 izzum\rules\IRule

저자: Rolf Vreijdenberger
파일 보기 프로젝트 열기: rolfvreijdenberger/izzum-statemachine

공개 메소드들

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

메소드 상세

applies() 공개 메소드

Context for a rule can be injected via dependency injection, so a Rule can use that dependent on object (or mock) in the method. Any context should be provided at rule 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 applies ( ) : boolean
리턴 boolean

toString() 공개 메소드

gives a string representation of the instance
public toString ( )