Skip to content

Extension points

tilttek/score-sheets

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
SheetDefinitionThe sheets of its games, declared as dataDeclaring a sheet
Contract\MatchSheetStoreThe store of its match sheets, on its own databaseMatch sheets
Message\MatchResultRecordedThe handler that passes a result on to its play log or its ratingPassing results on
The layout of a sheetThe HTML or PDF of a BlankSheet or a ScoreboardPrinting a blank sheet

The declarations, entries, scoreboards and results are values; the operations are a closed set the codec reads. ScoreKeeper and Scorer keep no state between two calls.