PHP Класс izzum\statemachine\utils\PlantUml

This mainly serves as a simple demo. More diagrams can be created from the data in a persistence layer. for example: - activity diagrams: which transitions has en entity actually made (and when) - flow diagrams: a combination of the state diagram and the activity diagram (show the full state diagram and highlight the states the entity has actually gone through) - heat maps: a count of every state for every entity.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
createStateDiagram ( StateMachine $machine ) : string creates plantuml state output for a statemachine

Приватные методы

Метод Описание
escape ( $string )
getPlantUmlSkins ( ) : string get skins for layout
plantUmlStateAlias ( string $original ) : string create an alias for a state that has a valid plantuml syntax

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

createStateDiagram() публичный Метод

creates plantuml state output for a statemachine
public createStateDiagram ( StateMachine $machine ) : string
$machine izzum\statemachine\StateMachine
Результат string plant uml code, this can be used to render an image