PHP 인터페이스 izzum\statemachine\loader\Loader

Loader is a marker interface for our package, so it always expects a Loader implementation. An implementation of Loader might use subclasses of Transition and State to provide alternative behaviour eg: an application performance optimized prioritized transition, so that when a state has 2 outgoing transitions, 1 is always tried first. An implementation of Loader knows how to retrieve the transition and state data from it's source and it knows about the izzum\statemachine. Therefore, the Loader implementation is best suited to create all transitions and states. A Loader implementation might create application specific subclasses of Transition and State (in case you need extra functionality) Ideally your specific loader should: - implement this interface: for use in a subclass of AbstractFactory - create the transitions and states correctly (use LoaderArray via composition) - work together with your persistence adapter (a concrete persistence adapter could implement this interface) to retrieve the data for the creation of the transitions and states - act as a Decorator for the LoaderArray
또한 보기: LoaderArray
또한 보기: izzum\statemachine\persistence\PDO
저자: Rolf Vreijdenberger
파일 보기 프로젝트 열기: rolfvreijdenberger/izzum-statemachine 0 사용 예제들

공개 메소드들

메소드 설명
load ( StateMachine $stateMachine ) : integer Loads a state machine with the correct transitions and state data
toString ( ) : string

메소드 상세

load() 공개 메소드

Loads a state machine with the correct transitions and state data
public load ( StateMachine $stateMachine ) : integer
$stateMachine izzum\statemachine\StateMachine
리턴 integer the number of transitions actually loaded on the machine

toString() 공개 메소드

public toString ( ) : string
리턴 string