PHP Class SM\Factory\Factory

Inheritance: extends AbstractFactory
Show file Open project: winzou/state-machine Class Usage Examples

Protected Properties

Property Type Description
$callbackFactory SM\Callback\CallbackFactoryInterface
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

Public Methods

Method Description
__construct ( array $configs, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher = null, SM\Callback\CallbackFactoryInterface $callbackFactory = null )

Protected Methods

Method Description
createStateMachine ( $object, array $config ) {@inheritDoc}

Method Details

__construct() public method

public __construct ( array $configs, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher = null, SM\Callback\CallbackFactoryInterface $callbackFactory = null )
$configs array
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$callbackFactory SM\Callback\CallbackFactoryInterface

createStateMachine() protected method

{@inheritDoc}
protected createStateMachine ( $object, array $config )
$config array

Property Details

$callbackFactory protected property

protected CallbackFactoryInterface,SM\Callback $callbackFactory
return SM\Callback\CallbackFactoryInterface

$dispatcher protected property

protected EventDispatcherInterface,Symfony\Component\EventDispatcher $dispatcher
return Symfony\Component\EventDispatcher\EventDispatcherInterface