PHP 클래스 izzum\statemachine\loader\YAML

The yaml string can contain one or more machine definitions. The correct machine will be found from the yaml structure. This class provides a way to load yaml from a file on your file system (fast access). This class needs the php yaml module to operate, which can be found via php.net
저자: Rolf Vreijdenberger
상속: implements izzum\statemachine\loader\Loader
파일 보기 프로젝트 열기: rolfvreijdenberger/izzum-statemachine 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $yaml )
__toString ( )
createFromFile ( string $filename ) : YAML creates an instance of this class with the data loaded from a file.
getYAML ( )
load ( StateMachine $stateMachine ) {@inheritDoc}
toString ( )

메소드 상세

__construct() 공개 메소드

public __construct ( string $yaml )
$yaml string optional a valid yaml string as specified in assets/yaml/example.yaml

__toString() 공개 메소드

public __toString ( )

createFromFile() 공개 정적인 메소드

creates an instance of this class with the data loaded from a file.
public static createFromFile ( string $filename ) : YAML
$filename string eg: __DIR__ . '/../../configuration.yaml'
리턴 YAML an instance of YAML with the data read from the file

getYAML() 공개 메소드

public getYAML ( )

load() 공개 메소드

{@inheritDoc}
public load ( StateMachine $stateMachine )
$stateMachine izzum\statemachine\StateMachine

toString() 공개 메소드

public toString ( )