Skip to content

Reference

phil/checkin

Phil\Checkin

TypeRole
CheckpointIdWhere a credential is scanned.
DeviceIdThe device a scan was made on.
ScanIdThe identifier of one scan, drawn by its device; generate().
CredentialCodeWhat a device read; fingerprint(), estimatedBits().
CredentialWhat a code stands for: identifier, label, checkpoints, opening, closing, entries, status; opens().
CredentialStatusActive or Revoked.
CatalogEntryA credential with one of its codes.
DirectionIn or Out.
ScanOutcomeWhat a scan decided; changesAttendance().
AdmissionPolicyThe early window and anti-passback; decide().
AttendanceEntries, inside, last entry and version; none(), restore(), after().
CheckInOne scan of a known credential with its decision; decided(), restore().
CheckInDeskThe online check-in; scan().
ScanResultWhat the desk answers; collided() for a scan identifier recorded for another scan.
CredentialResolversSeveral resolvers asked in their order.
InMemoryCheckInLedgerA ledger for tests; all().

Phil\Checkin\Contract

TypeRole
CredentialResolverFinds the credential of a code.
CheckInLedgerKeeps the check-ins and the attendances.
CredentialCatalogLists the credentials of a checkpoint, finds one by identifier.

Phil\Checkin\Offline

TypeRole
ManifestIssuerIssues the manifest of a checkpoint for a device; issue().
OfflineManifestWhat a device downloads; toArray().
ManifestEntryOne credential of a manifest; toArray().
OfflineScanOne scan decided offline; of(), fromArray().
OfflineBatchReads a journal; read().
OfflineSyncRecords a journal; apply().
SyncStatusRecorded, Conflict, Duplicate, Collision or Rejected.
SyncReportThe status of each scan; count(), toArray().

Phil\Checkin\Exception

TypeRole
CheckinExceptionEvery exception of the library.
InvalidCheckinA value the library cannot work with.
InvalidOfflineBatchA malformed journal.
LedgerContentionA scan that kept meeting others.
ManifestTooLargeA catalog over the manifest's limit.
WeakManifestCodesA code too weak for a manifest.