PHP Class spec\SM\StateMachine\StateMachineSpec

Inheritance: extends PhpSpec\ObjectBehavior
Mostra file Open project: winzou/state-machine

Protected Properties

Property Type Description
$config

Public Methods

Method Description
it_applies_transition ( $object, $dispatcher, $callbackFactory, SM\Callback\CallbackInterface $guard, SM\Callback\CallbackInterface $callback1, SM\Callback\CallbackInterface $callback2, SM\Callback\CallbackInterface $callback3 )
it_can ( $object, $dispatcher, $callbackFactory, SM\Callback\CallbackInterface $guard )
it_cannot ( $object, $dispatcher )
it_does_nothing_if_transition_cannot_be_applied_in_soft_mode ( $object, $dispatcher )
it_is_guarded_and_can ( $object, $dispatcher, $callbackFactory, SM\Callback\CallbackInterface $guard )
it_is_guarded_and_cannot ( $object, $dispatcher, $callbackFactory, SM\Callback\CallbackInterface $guard )
it_is_initializable ( )
it_returns_current_graph ( )
it_returns_current_object ( $object )
it_returns_current_state ( $object )
it_returns_possible_transitions ( $object, $callbackFactory, SM\Callback\CallbackInterface $guard )
it_throws_an_exception_if_transition_cannot_be_applied ( $object, $dispatcher )
it_throws_an_exception_if_transition_doesnt_exist_on_apply ( )
it_throws_an_exception_if_transition_doesnt_exist_on_can ( )
let ( spec\SM\DummyObject $object, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, SM\Callback\CallbackFactoryInterface $callbackFactory )

Method Details

it_applies_transition() public method

public it_applies_transition ( $object, $dispatcher, $callbackFactory, SM\Callback\CallbackInterface $guard, SM\Callback\CallbackInterface $callback1, SM\Callback\CallbackInterface $callback2, SM\Callback\CallbackInterface $callback3 )
$guard SM\Callback\CallbackInterface
$callback1 SM\Callback\CallbackInterface
$callback2 SM\Callback\CallbackInterface
$callback3 SM\Callback\CallbackInterface

it_can() public method

public it_can ( $object, $dispatcher, $callbackFactory, SM\Callback\CallbackInterface $guard )
$guard SM\Callback\CallbackInterface

it_cannot() public method

public it_cannot ( $object, $dispatcher )

it_does_nothing_if_transition_cannot_be_applied_in_soft_mode() public method

it_is_guarded_and_can() public method

public it_is_guarded_and_can ( $object, $dispatcher, $callbackFactory, SM\Callback\CallbackInterface $guard )
$guard SM\Callback\CallbackInterface

it_is_guarded_and_cannot() public method

public it_is_guarded_and_cannot ( $object, $dispatcher, $callbackFactory, SM\Callback\CallbackInterface $guard )
$guard SM\Callback\CallbackInterface

it_is_initializable() public method

public it_is_initializable ( )

it_returns_current_graph() public method

it_returns_current_object() public method

public it_returns_current_object ( $object )

it_returns_current_state() public method

public it_returns_current_state ( $object )

it_returns_possible_transitions() public method

public it_returns_possible_transitions ( $object, $callbackFactory, SM\Callback\CallbackInterface $guard )
$guard SM\Callback\CallbackInterface

it_throws_an_exception_if_transition_cannot_be_applied() public method

it_throws_an_exception_if_transition_doesnt_exist_on_apply() public method

it_throws_an_exception_if_transition_doesnt_exist_on_can() public method

let() public method

public let ( spec\SM\DummyObject $object, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, SM\Callback\CallbackFactoryInterface $callbackFactory )
$object spec\SM\DummyObject
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$callbackFactory SM\Callback\CallbackFactoryInterface

Property Details

$config protected_oe property

protected $config