Overview

Namespaces

  • Mothership
    • Exception
      • StateMachine
    • StateMachine

Classes

  • StateMachineAbstract
  • Status
  • Transition
  • WorkflowAbstract

Interfaces

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

Interface WorkflowInterface

Direct known implementers

Mothership\StateMachine\WorkflowAbstract
Namespace: Mothership\StateMachine
Located at Mothership/StateMachine/WorkflowInterface.php
Methods summary
public mixed
# setInitialState( )

Set the inizial state of the workflow

Set the inizial state of the workflow

Returns

mixed
public mixed
# run( )

execute the workflow

execute the workflow

Returns

mixed
public Mothership\StateMachine\StatusInterface
# getCurrentStatus( )

Return the current status of the workflow

Return the current status of the workflow

Returns

Mothership\StateMachine\StatusInterface
$status
public mixed
# setState( Mothership\StateMachine\StatusInterface $status )

Set the status of the workflow

Set the status of the workflow

Parameters

$status

Returns

mixed
public mixed
# getStatus( $name )

Get the status of the workflow by its name

Get the status of the workflow by its name

Parameters

$name

Returns

mixed
API documentation generated by ApiGen