class ConflictChecker

Detects whether a user is already scheduled (assigned or booked) in a given timeslot.

A user may only attend one thing per timeslot. Used by AssignmentService and BookingService before creating new commitments.

Methods

__construct(AssignmentRepository $assignmentRepository, BookingRepository $bookingRepository)

No description

bool
hasConflict(User $user, Timeslot $timeslot)

No description

Details

at line 20
__construct(AssignmentRepository $assignmentRepository, BookingRepository $bookingRepository)

No description

Parameters

AssignmentRepository $assignmentRepository
BookingRepository $bookingRepository

at line 26
bool hasConflict(User $user, Timeslot $timeslot)

No description

Parameters

User $user
Timeslot $timeslot

Return Value

bool