Fork me on Github

Class Finite\Loader\ ArrayLoader

Loads a StateMachine from an array


Implements: LoaderInterface

Methods

__construct( array $config)

load( StateMachineInterface $stateMachine)

Loads a state machine

boolean supports( StatefulInterface $object)

Returns if this loader supports $object

Details

public __construct( array $config)

Parameters
array $config

public load( StateMachineInterface $stateMachine)

Loads a state machine

Parameters
StateMachineInterface $stateMachine

public boolean supports( StatefulInterface $object)

Returns if this loader supports $object

Parameters
StatefulInterface $object
Return Value
boolean