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

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( $name )
addTransition ( Node $dst, Alterway\Component\Workflow\SpecificationInterface $spec ) : Node Adds a transition.
getName ( ) : string Returns the current node's name.
getOpenTransitions ( Alterway\Component\Workflow\ContextInterface $context ) : array Returns the opened transitions.

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

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

public __construct ( $name )

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

Adds a transition.
public addTransition ( Node $dst, Alterway\Component\Workflow\SpecificationInterface $spec ) : Node
$dst Node
$spec Alterway\Component\Workflow\SpecificationInterface
Результат Node

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

Returns the current node's name.
public getName ( ) : string
Результат string

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

Returns the opened transitions.
public getOpenTransitions ( Alterway\Component\Workflow\ContextInterface $context ) : array
$context Alterway\Component\Workflow\ContextInterface
Результат array