PHP 클래스 Alterway\Component\Workflow\Workflow

파일 보기 프로젝트 열기: alterway/component-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