Overview

Namespaces

  • Mothership
    • Exception
      • StateMachine
    • StateMachine

Classes

  • StateMachineAbstract
  • Status
  • Transition
  • WorkflowAbstract

Interfaces

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

Class StateMachineAbstract

Mothership\StateMachine\StateMachineAbstract implements Mothership\StateMachine\StateMachineInterface
Abstract
Namespace: Mothership\StateMachine
Located at Mothership/StateMachine/StateMachineAbstract.php
Methods summary
public
# __construct( $file, Symfony\Component\Console\Output\OutputInterface $output )
protected array
# parseYAML( )

Parse the yaml file

Parse the yaml file

Returns

array

Throws

Symfony\Component\Yaml\Exception\ParseException
Exception
protected
# initWorkflow( )

Create the instance of the real workflow

Create the instance of the real workflow

public
# renderGraph( boolean|false $outputPath = './workflow.png', $exit = true )

create a graph for the state machine

create a graph for the state machine

Parameters

$outputPath
$exit if we want to exit after graphic generation
$exit
public
# run( )

Run the state machine

Run the state machine

Implementation of

Mothership\StateMachine\StateMachineInterface::run()
Properties summary
protected $workflow_file
#
protected $workflow_array
#
protected $workflow
#
protected $output
#
API documentation generated by ApiGen