Overview

Namespaces

  • Mothership
    • Exception
      • StateMachine
    • StateMachine

Classes

  • StateMachineAbstract
  • Status
  • Transition
  • WorkflowAbstract

Interfaces

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

Interface StatusInterface

Direct known implementers

Mothership\StateMachine\Status
Namespace: Mothership\StateMachine
Located at Mothership/StateMachine/StatusInterface.php
Methods summary
public string
# getName( )

Returns the state name

Returns the state name

Returns

string
public string
# getType( )

Returns the state type

Returns the state type

Returns

string
public array
# getTransitions( )

Returns the available transitions

Returns the available transitions

Returns

array
public mixed
# execute( $transition_name, Mothership\StateMachine\StatusInterface $status_from )

Check if a transiction can be run from this status

Check if a transiction can be run from this status

Parameters

$transition_name
$status_from

Returns

mixed
public boolean
# has( string $property )

Parameters

$property

Returns

boolean
public mixed
# get( string $property )

Parameters

$property

Returns

mixed
public mixed
# getProperties( )

Returns optional state properties

Returns optional state properties

Returns

mixed
public Mothership\StateMachine\WorkflowInterface
# getWorkflow( )

Returns

Mothership\StateMachine\WorkflowInterface
public mixed
# setInternalStatus( $state )

This is an internal status for the State, valid if the next step need a condition to be executed

This is an internal status for the State, valid if the next step need a condition to be executed

Returns

mixed
API documentation generated by ApiGen