Fork me on Github

Class Finite\Factory\ PimpleFactory

A concrete implementation of State Machine Factory using Pimple


Inherits from: AbstractFactory

Methods

StateMachineInterface get( StatefulInterface $object)

Returns a StateMachine instance initialized on $object

from AbstractFactory
addLoader( LoaderInterface $loader)

from AbstractFactory
__construct( Pimple $container, string $id)

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

public __construct( Pimple $container, string $id)

Parameters
Pimple $container
string $id