Fork me on Github

Class Finite\Factory\ AbstractFactory

The abstract base class for state machine factories


Implements: FactoryInterface

Methods

StateMachineInterface get( StatefulInterface $object)

Returns a StateMachine instance initialized on $object

addLoader( LoaderInterface $loader)

Details

public StateMachineInterface get( StatefulInterface $object)

Returns a StateMachine instance initialized on $object

Parameters
StatefulInterface $object
Return Value
StateMachineInterface

public addLoader( LoaderInterface $loader)

Parameters
LoaderInterface $loader