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
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__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 ( )