libSmalldb  v2.0.2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractCachingProvider Class Reference

Description

Class AbstractStateMachineProvider.

A simple caching provider with caching getters. Implement the provide* methods to feed the respective getters. Each of the provide* methods will be called only once.

Inheritance diagram for AbstractCachingProvider

Public Member Functions

 setReferenceClass (string $referenceClass)
 
 getReferenceClass ()
 
 setDefinition (?StateMachineDefinition $definition)
 
 setDefinitionBag (SmalldbDefinitionBagInterface $definitionBag)
 
 setMachineType (string $machineType)
 
 getMachineType ()
 
 getDefinition ()
 
 setTransitionsDecorator (?TransitionDecorator $transitionsDecorator)
 
 getTransitionsDecorator ()
 
 setRepository (?SmalldbRepositoryInterface $repository)
 
 getRepository ()
 

Protected Member Functions

 provideDefinition ()
 
 provideTransitionsImplementation ()
 
 provideRepository ()
 

Protected Attributes

SmalldbDefinitionBagInterface $definitionBag = null
 
StateMachineDefinition $definition = null
 
TransitionDecorator $transitionsDecorator = null
 
SmalldbRepositoryInterface $repository = null
 

Member Function Documentation

◆ setReferenceClass()

setReferenceClass ( string  $referenceClass)

◆ getReferenceClass()

getReferenceClass ( )

◆ setDefinition()

setDefinition ( ?StateMachineDefinition  $definition)
final
Returns
$this

◆ setDefinitionBag()

setDefinitionBag ( SmalldbDefinitionBagInterface  $definitionBag)
final
Returns
$this

◆ setMachineType()

setMachineType ( string  $machineType)
final
Returns
$this

◆ getMachineType()

getMachineType ( )
final

◆ getDefinition()

getDefinition ( )
final

◆ provideDefinition()

provideDefinition ( )
abstractprotected

◆ setTransitionsDecorator()

setTransitionsDecorator ( ?TransitionDecorator  $transitionsDecorator)
final
Returns
$this

◆ getTransitionsDecorator()

getTransitionsDecorator ( )
final

◆ provideTransitionsImplementation()

provideTransitionsImplementation ( )
abstractprotected

◆ setRepository()

setRepository ( ?SmalldbRepositoryInterface  $repository)
final
Returns
$this

◆ getRepository()

getRepository ( )
final

◆ provideRepository()

provideRepository ( )
abstractprotected

Member Data Documentation

◆ $definitionBag

SmalldbDefinitionBagInterface $definitionBag = null
protected

◆ $definition

StateMachineDefinition $definition = null
protected

◆ $transitionsDecorator

TransitionDecorator $transitionsDecorator = null
protected

◆ $repository

SmalldbRepositoryInterface $repository = null
protected