Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
izzum
examples
trafficlight
TrafficLight
PHP 클래스 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
파일 보기
프로젝트 열기: rolfvreijdenberger/izzum-statemachine
1 사용 예제들
공개 메소드들
메소드
설명
__construct
(
$id
)
isReadyToSwitch
( )
setGreen
( )
setOrange
( )
setRed
( )
toString
( )
보호된 메소드들
메소드
설명
onColorFor
(
$time
)
setColor
(
$color
)
setId
(
$id
)
setSwitchTime
( )
메소드 상세
__construct()
공개
메소드
public
__construct
(
$id
)
isReadyToSwitch()
공개
메소드
public
isReadyToSwitch
( )
onColorFor()
보호된
메소드
protected
onColorFor
(
$time
)
setColor()
보호된
메소드
protected
setColor
(
$color
)
setGreen()
공개
메소드
public
setGreen
( )
setId()
보호된
메소드
protected
setId
(
$id
)
setOrange()
공개
메소드
public
setOrange
( )
setRed()
공개
메소드
public
setRed
( )
setSwitchTime()
보호된
메소드
protected
setSwitchTime
( )
toString()
공개
메소드
public
toString
( )