PHP Class 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.
Show file Open project: rolfvreijdenberger/izzum-statemachine Class Usage Examples

Public Methods

Method Description
createStateDiagram ( StateMachine $machine ) : string creates plantuml state output for a statemachine

Private Methods

Method Description
escape ( $string )
getPlantUmlSkins ( ) : string get skins for layout
plantUmlStateAlias ( string $original ) : string create an alias for a state that has a valid plantuml syntax

Method Details

createStateDiagram() public method

creates plantuml state output for a statemachine
public createStateDiagram ( StateMachine $machine ) : string
$machine izzum\statemachine\StateMachine
return string plant uml code, this can be used to render an image