spoof
|
Public Member Functions | |
getState () | |
setState ($state, $time) | |
processEvent ($function, $result) | |
Public Member Functions inherited from IEntity | |
setEngine (IEngine $workflow) |
Interface for state workflow entity implementations
getState | ( | ) |
Gets current state of instance
User classes must provide implementation to retrieve and return the object state for use in state workflow rules.
processEvent | ( | $function, | |
$result | |||
) |
Processes given function and result
Implementing classes must process function and result and set the next state as defined in state workflow definition.
string | $function | function executed |
string | $result | result of the executed function |
Implemented in Entity.
setState | ( | $state, | |
$time | |||
) |
Sets current state of instance
User classes must provide implementation to store the object state. The state should be durable.
string | $state | state to store |
integer | $time | timestamp of this event |