Finite\StateMachine\StateMachineInterface::setGraph PHP Method

setGraph() public method

public setGraph ( string $graph )
$graph string
    public function setGraph($graph);

Usage Example

 /**
  * {@inheritdoc}
  *
  * @param StateMachineInterface $stateMachine
  */
 public function load(StateMachineInterface $stateMachine)
 {
     $stateMachine->setStateAccessor(new PropertyPathStateAccessor($this->config['property_path']));
     $stateMachine->setGraph($this->config['graph']);
     array_walk($this->config['states'], array($stateMachine, 'addState'));
     array_walk($this->config['transitions'], array($stateMachine, 'addTransition'));
 }
All Usage Examples Of Finite\StateMachine\StateMachineInterface::setGraph