PHP Class SM\Factory\Factory

Inheritance: extends AbstractFactory
Mostrar archivo 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_oe property

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

$dispatcher protected_oe property

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