Medical Appointments API

ExceptionService
in package

A class service for working with the logic business of exceptions (holidays and special days).

Tags
author

Luis Graciano contacto@luisgraciano.dev

Table of Contents

$exceptionRepository  : ExceptionRepository
$medicalCenterService  : MedicalCenterService
$timeZoneService  : TimeZoneService
__construct()  : mixed
ExceptionService constructor.
delete()  : void
Delete an exception by id.
findByMedicalCenterId()  : array<string|int, mixed>
Find all exceptions for a medical center.
save()  : ExceptionDomain
Save an exception.
checkOverlap()  : void
Check if an exception overlaps with another exception.
mapExceptionDomainToEntity()  : ExceptionEntity
Map an exception domain to an entity object.
mapExceptionEntityToDomain()  : ExceptionDomain
Convert an exception entity to a domain object.

Properties

Methods

delete()

Delete an exception by id.

public delete(int $id) : void
Parameters
$id : int
Tags
throws
UnhandledException

If an error occurs while deleting the exception.

Return values
void

findByMedicalCenterId()

Find all exceptions for a medical center.

public findByMedicalCenterId(int $medicalCenterId) : array<string|int, mixed>
Parameters
$medicalCenterId : int
Tags
throws
UnhandledException

If an error occurs while finding the exceptions.

Return values
array<string|int, mixed>

Search results