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
Afficher le fichier
Open project: rolfvreijdenberger/izzum-statemachine
Class Usage Examples
Méthodes publiques
Méthodes protégées
Method Details
__construct()
public méthode
isReadyToSwitch()
public méthode
onColorFor()
protected méthode
setColor()
protected méthode
setGreen()
public méthode
setId()
protected méthode
setOrange()
public méthode
setSwitchTime()
protected méthode
toString()
public méthode