libSmalldb  v2.0.2
Public Member Functions | List of all members
SmalldbDefinitionBagInterface Interface Reference

Inheritance diagram for SmalldbDefinitionBagInterface

Public Member Functions

 getDefinition (string $machineType)
 Get the definition of the state machine. More...
 
 getAllMachineTypes ()
 List of all machine types which have the definition in this bag. More...
 
 getAllDefinitions ()
 Returns array or generator of all state machine definitions. More...
 
 getAllAliases ()
 List of all aliases which have the definition in this bag. More...
 

Member Function Documentation

◆ getDefinition()

getDefinition ( string  $machineType)

Get the definition of the state machine.

Implemented in SmalldbDefinitionBag.

◆ getAllMachineTypes()

getAllMachineTypes ( )

List of all machine types which have the definition in this bag.

Returns
string[]

Implemented in SmalldbDefinitionBag.

◆ getAllDefinitions()

getAllDefinitions ( )

Returns array or generator of all state machine definitions.

This may be slow and cause a lot of lazy-loading. It is better to use getAllMachineTypes() when possible.

Returns
StateMachineDefinition[]

Implemented in SmalldbDefinitionBag.

◆ getAllAliases()

getAllAliases ( )

List of all aliases which have the definition in this bag.

Returns
string[]

Implemented in SmalldbDefinitionBag.