The Finite context.
It provides easy ways to deal with Stateful objects, and factory
__construct( FactoryInterface $factory) | ||
string | getState( StatefulInterface $object) | |
array<string> | getTransitions( StatefulInterface $object) | |
array<string> | getProperties( StatefulInterface $object) | |
bool | hasProperty( StatefulInterface $object, string $property) | |
StateMachine | getStateMachine( StatefulInterface $object) | |
FactoryInterface | getFactory() |
public
__construct( FactoryInterface $factory)
public string
getState( StatefulInterface $object)
public array<string>
getTransitions( StatefulInterface $object)
public array<string>
getProperties( StatefulInterface $object)
public bool
hasProperty( StatefulInterface $object, string $property)
public StateMachine
getStateMachine( StatefulInterface $object)
public FactoryInterface
getFactory()