PHP 클래스 izzum\rules\RuleResult

This could be when there are multiple steps or paths in rule execution and the client wants to know which one of those were executed after a rule->applies() call has been made. This will most probably happen in a rule where multipe business rules are combined or where there are multiple conditional paths.
저자: Rolf Vreijdenberger
저자: Richard Ruiter
파일 보기 프로젝트 열기: rolfvreijdenberger/izzum-statemachine 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Rule $rule, string $result )
getResult ( ) : string get the result
getRule ( ) : Rule get the rule for which this result applies

메소드 상세

__construct() 공개 메소드

public __construct ( Rule $rule, string $result )
$rule Rule
$result string

getResult() 공개 메소드

get the result
public getResult ( ) : string
리턴 string

getRule() 공개 메소드

get the rule for which this result applies
public getRule ( ) : Rule
리턴 Rule