Skip to content

Extension points

tilttek/dice-jail

The package is at 0.x: its extension points are stable only from its 1.0 release. Until then, a minor version may change them, and its CHANGELOG says how.

PointWhat an application givesWhere
Contract\JailStoreThe storage of the history of each die, with its positionsThe jail
Contract\RollSourceThe rolls of each die: the faces players wrote down, or the application's journal of rollsThe statistics
Psr\Clock\ClockInterfaceThe time of each event and of the end of sentencesInstallation
Statistics\ExpectedFacesThe fair die the rolls are measured againstThe statistics

Every point is passed to a constructor; no service keeps state between two calls.