PHP Класс spec\SM\StateMachine\StateMachineSpec

Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$config

Открытые методы

Метод Описание
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 )

Описание методов

it_applies_transition() публичный Метод

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 it_can ( $object, $dispatcher, $callbackFactory, SM\Callback\CallbackInterface $guard )
$guard SM\Callback\CallbackInterface

it_cannot() публичный Метод

public it_cannot ( $object, $dispatcher )

it_does_nothing_if_transition_cannot_be_applied_in_soft_mode() публичный Метод

it_is_guarded_and_can() публичный Метод

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

it_is_guarded_and_cannot() публичный Метод

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

it_is_initializable() публичный Метод

public it_is_initializable ( )

it_returns_current_graph() публичный Метод

it_returns_current_object() публичный Метод

public it_returns_current_object ( $object )

it_returns_current_state() публичный Метод

public it_returns_current_state ( $object )

it_returns_possible_transitions() публичный Метод

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

it_throws_an_exception_if_transition_cannot_be_applied() публичный Метод

it_throws_an_exception_if_transition_doesnt_exist_on_apply() публичный Метод

it_throws_an_exception_if_transition_doesnt_exist_on_can() публичный Метод

let() публичный Метод

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

Описание свойств

$config защищенное свойство

protected $config