Skip to content

Reference

tilttek/advent-calendar
TypeRole
AdventCalendarOpens boxes once, shows them as a member sees them, erases a member
CalendarThe boxes by day, their surprises, the timezone, the policy and the closing
Surprise, SurpriseKindThe reward a box refers to; points, a badge, content or a code
OpeningPolicy, PolicyKindHow long a box stays openable; until closing, the same day or a catch-up
OpeningWindowWhen a box may be opened: from, included, until, excluded
OpeningA box a member opened, and when
OpenedBoxWhat open() answers: the opening, the surprise, and whether this call opened it
BoxView, BoxStateA box as one member sees it; locked, openable, opened or missed
Event\BoxOpenedDispatched once per first opening, for the application to grant the surprise
Contract\OpeningStore, Store\InMemoryOpeningStoreWhere the openings are kept
Exception\AdventCalendarException and its two exceptionsExceptions