Skip to content

Extension points

tilttek/rating

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\RatingStoreThe storage of the members' ratingsStoring
Contract\PlaySourceThe results of a game, oldest first, for a replayReplaying
Contract\RatingSystemAnother rating system; Elo\EloSystem and OpenSkill\OpenSkillSystem are givenElo, OpenSkill
Elo\KFactorA fixed or decreasing KElo
Psr\EventDispatcher\EventDispatcherInterfaceWho hears of each change, through Event\RatingChanged and Event\PeakReachedCelebrations

A system of the application implements Contract\RatingSystem and Contract\Rating: an identifier of its own, kept with each rating, ratings of whole numbers and the same new ratings for the same inputs. Every point is passed to a constructor; none of the library's services keeps state between two calls.