PHP Класс Alterway\Component\Workflow\Workflow

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Node $start, NodeMap $nodes, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
initialize ( string $token = null ) : Workflow Initializes the workflow with a given token.
next ( Alterway\Component\Workflow\ContextInterface $context ) : Workflow Moves the current token to the next node of the workflow.

Описание методов

__construct() публичный метод

public __construct ( Node $start, NodeMap $nodes, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$start Node
$nodes NodeMap
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

initialize() публичный метод

Initializes the workflow with a given token.
public initialize ( string $token = null ) : Workflow
$token string
Результат Workflow

next() публичный метод

Moves the current token to the next node of the workflow.
public next ( Alterway\Component\Workflow\ContextInterface $context ) : Workflow
$context Alterway\Component\Workflow\ContextInterface
Результат Workflow