PHP 클래스 izzum\examples\trafficlight\rules\CanSwitch

It only has knowledge about a traffic light domain model and no knowledge about any statemachine. The TrafficLight instance will be injected at runtime via the statemachine that makes use of the EntityBuilderTrafficLight. A rule should never have side effects. instead, it should only check if some condition is true or false.
상속: extends izzum\rules\Rule
파일 보기 프로젝트 열기: rolfvreijdenberger/izzum-statemachine

공개 메소드들

메소드 설명
__construct ( TrafficLight $light ) constructor. get the domain object injected

보호된 메소드들

메소드 설명
_applies ( ) overriden method with the correct implementation for our domain logic {@inheritDoc}

메소드 상세

__construct() 공개 메소드

constructor. get the domain object injected
public __construct ( TrafficLight $light )
$light izzum\examples\trafficlight\TrafficLight

_applies() 보호된 메소드

overriden method with the correct implementation for our domain logic {@inheritDoc}
protected _applies ( )