PHP Class izzum\examples\trafficlight\TrafficLight
It has a unique identifier, the color it is currently on and the time since
the last switch.
- the Rule will query it for information (isReadyToSwitch)
- the Commands will manipulate the object to set it's color
Show file
Open project: rolfvreijdenberger/izzum-statemachine
Class Usage Examples
Public Methods
Protected Methods
Method Details
__construct()
public method
isReadyToSwitch()
public method
onColorFor()
protected method
setColor()
protected method
setOrange()
public method
setSwitchTime()
protected method