Overview

Namespaces

  • Mothership
    • Exception
      • StateMachine
    • StateMachine

Classes

  • StateMachineAbstract
  • Status
  • Transition
  • WorkflowAbstract

Interfaces

  • StateMachineInterface
  • StatusInterface
  • TransitionInterface
  • WorkflowInterface
  • Overview
  • Namespace
  • Class

Class Transition

Mothership\StateMachine\Transition implements Mothership\StateMachine\TransitionInterface
Namespace: Mothership\StateMachine
Located at Mothership/StateMachine/Transition.php
Methods summary
public
# __construct( Mothership\StateMachine\StatusInterface $status, $transition_from )

Implementation of

Mothership\StateMachine\TransitionInterface::__construct()
public Mothership\StateMachine\StatusInterface
# getStatus( )

Returns the state resulting of this transition

Returns the state resulting of this transition

Returns

Mothership\StateMachine\StatusInterface
public mixed
# process( )

Returns

mixed

Throws

Mothership\Exception\StateMachine\TransitionException

Implementation of

Mothership\StateMachine\TransitionInterface::process()
public string
# getName( )

Returns the name of the transition

Returns the name of the transition

Returns

string

Implementation of

Mothership\StateMachine\TransitionInterface::getName()
public mixed
# getTransitionFrom( )

Get the starting point of the transiction

Get the starting point of the transiction

Returns

mixed

Implementation of

Mothership\StateMachine\TransitionInterface::getTransitionFrom()
public mixed
# getTransitionTo( )

ending point of the transiction

ending point of the transiction

Returns

mixed

Implementation of

Mothership\StateMachine\TransitionInterface::getTransitionTo()
public mixed
# getMethodToRun( )

method that will be execute in the workflow

method that will be execute in the workflow

Returns

mixed

Implementation of

Mothership\StateMachine\TransitionInterface::getMethodToRun()
public boolean
# hasCondition( )

If the transition has a condition to be executed

If the transition has a condition to be executed

Returns

boolean

Implementation of

Mothership\StateMachine\TransitionInterface::hasCondition()
public mixed
# getCondition( )

Get the condition to be executed

Get the condition to be executed

Returns

mixed

Implementation of

Mothership\StateMachine\TransitionInterface::getCondition()
Properties summary
protected $name
#
protected $status
#
protected $transition_from
#
protected $hasCondition
#
protected $condition
#
API documentation generated by ApiGen