Medical Appointments API

ScheduleService
in package

ScheduleService class for working with ScheduleEntity.

Tags
author

Luis Graciano contacto@luisgraciano.dev

Table of Contents

$appointmentDurationService  : AppointmentDurationService
$scheduleRepository  : ScheduleRepository
$scheduleTimeSlotService  : ScheduleTimeSlotService
__construct()  : mixed
ScheduleService constructor.
delete()  : void
Delete a schedule by id.
findById()  : ScheduleDomain
Find a schedule by its ID.
findByMedicalCenterId()  : ScheduleDomain
Find a schedule by its medical center ID.
save()  : ScheduleDomain
Save a schedule.
update()  : ScheduleDomain
Update a schedule by its ID.
getScheduleEntityById()  : ScheduleEntity
Find a schedule by its ID.
mapScheduleEntityToDomain()  : ScheduleDomain
Map a schedule entity to a schedule domain.

Properties

Methods

__construct()

ScheduleService constructor.

public __construct(ScheduleRepository $scheduleRepository, ScheduleTimeSlotService $scheduleTimeSlotService, AppointmentDurationService $appointmentDurationService) : mixed
Parameters
$scheduleRepository : ScheduleRepository

The schedule repository.

$scheduleTimeSlotService : ScheduleTimeSlotService

The schedule time slot service.

$appointmentDurationService : AppointmentDurationService

The appointment duration service.

Return values
mixed

delete()

Delete a schedule by id.

public delete(int $id) : void
Parameters
$id : int

The id of the schedule to delete.

Tags
throws
UnhandledException

If an error occurs while deleting the schedule.

Return values
void

Search results