PHP Class spec\SM\StateMachine\StateMachineSpec

Inheritance: extends PhpSpec\ObjectBehavior
Afficher le fichier Open project: winzou/state-machine

Protected Properties

Свойство Type Description
$config

Méthodes publiques

Méthode 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 méthode

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 méthode

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

it_cannot() public méthode

public it_cannot ( $object, $dispatcher )

it_does_nothing_if_transition_cannot_be_applied_in_soft_mode() public méthode

it_is_guarded_and_can() public méthode

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

it_is_guarded_and_cannot() public méthode

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

it_is_initializable() public méthode

public it_is_initializable ( )

it_returns_current_graph() public méthode

it_returns_current_object() public méthode

public it_returns_current_object ( $object )

it_returns_current_state() public méthode

public it_returns_current_state ( $object )

it_returns_possible_transitions() public méthode

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 méthode

it_throws_an_exception_if_transition_doesnt_exist_on_apply() public méthode

it_throws_an_exception_if_transition_doesnt_exist_on_can() public méthode

let() public méthode

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