PHP 클래스 Alterway\Component\Workflow\Node

파일 보기 프로젝트 열기: alterway/component-workflow 1 사용 예제들

공개 메소드들

메소드 설명
__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