ScheduleDomain
in package
implements
JsonSerializable
Tags
Interfaces, Classes, Traits and Enums
- JsonSerializable
Table of Contents
- $active : bool|null
- $appointmentDuration : AppointmentDurationDomain|null
- $appointmentDurationId : int|null
- $canBeScheduled : bool|null
- $createdAt : DateTime|null
- $id : int|null
- $medicalCenterId : int|null
- $timeSlots : array<string|int, mixed>|null
- fromArray() : ScheduleDomain
- Creates an ScheduleDomain object from an array.
- getActive() : bool|null
- Get whether the schedule is active.
- getAppointmentDuration() : AppointmentDurationDomain|null
- Get the appointment duration domain object.
- getAppointmentDurationId() : int|null
- Get the appointment duration ID.
- getCanBeScheduled() : bool|null
- Get whether the schedule can be scheduled.
- getCreatedAt() : DateTime|null
- Get the creation date and time.
- getId() : int|null
- Get the schedule ID.
- getMedicalCenterId() : int|null
- Get the medical center ID.
- getTimeSlots() : array<string, ScheduleTimeSlotDomain>|null
- Get the list of time slots.
- jsonSerialize() : array<string|int, mixed>
- Returns an array representation of the ScheduleDomain object.
- setActive() : void
- Set whether the schedule is active.
- setAppointmentDuration() : void
- Set the appointment duration domain object.
- setAppointmentDurationId() : void
- Set the appointment duration ID.
- setCanBeScheduled() : void
- Set whether the schedule can be scheduled.
- setCreatedAt() : void
- Set the creation date and time.
- setId() : void
- Set the schedule ID.
- setMedicalCenterId() : void
- Set the medical center ID.
- setTimeSlots() : void
- Set the list of time slots.
Properties
$active
private
bool|null
$active
= null
Whether the schedule is active.
$appointmentDuration
private
AppointmentDurationDomain|null
$appointmentDuration
= null
The appointment duration domain object.
$appointmentDurationId
private
int|null
$appointmentDurationId
= null
The appointment duration ID.
$canBeScheduled
private
bool|null
$canBeScheduled
= null
Whether the schedule can be scheduled.
$createdAt
private
DateTime|null
$createdAt
= null
The creation date and time.
$id
private
int|null
$id
= null
The schedule ID.
$medicalCenterId
private
int|null
$medicalCenterId
= null
The medical center ID.
$timeSlots
private
array<string|int, mixed>|null
$timeSlots
= null
The list of time slots.
Methods
fromArray()
Creates an ScheduleDomain object from an array.
public
static fromArray(array<string|int, mixed> $data) : ScheduleDomain
Parameters
- $data : array<string|int, mixed>
-
The array to create the object from.
Tags
Return values
ScheduleDomain —The created ScheduleDomain object.
getActive()
Get whether the schedule is active.
public
getActive() : bool|null
Return values
bool|null —Whether the schedule is active.
getAppointmentDuration()
Get the appointment duration domain object.
public
getAppointmentDuration() : AppointmentDurationDomain|null
Return values
AppointmentDurationDomain|null —The appointment duration domain object.
getAppointmentDurationId()
Get the appointment duration ID.
public
getAppointmentDurationId() : int|null
Return values
int|null —The appointment duration ID.
getCanBeScheduled()
Get whether the schedule can be scheduled.
public
getCanBeScheduled() : bool|null
Return values
bool|null —Whether the schedule can be scheduled.
getCreatedAt()
Get the creation date and time.
public
getCreatedAt() : DateTime|null
Return values
DateTime|null —The creation date and time.
getId()
Get the schedule ID.
public
getId() : int|null
Return values
int|null —The schedule ID.
getMedicalCenterId()
Get the medical center ID.
public
getMedicalCenterId() : int|null
Return values
int|null —The medical center ID.
getTimeSlots()
Get the list of time slots.
public
getTimeSlots() : array<string, ScheduleTimeSlotDomain>|null
Return values
array<string, ScheduleTimeSlotDomain>|null —The list of time slots.
jsonSerialize()
Returns an array representation of the ScheduleDomain object.
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —The array representation of the ScheduleDomain object.
setActive()
Set whether the schedule is active.
public
setActive(bool|null $active) : void
Parameters
- $active : bool|null
-
Whether the schedule is active.
Return values
void —setAppointmentDuration()
Set the appointment duration domain object.
public
setAppointmentDuration(AppointmentDurationDomain|null $appointmentDuration) : void
Parameters
- $appointmentDuration : AppointmentDurationDomain|null
-
The appointment duration domain object.
Return values
void —setAppointmentDurationId()
Set the appointment duration ID.
public
setAppointmentDurationId(int|null $appointmentDurationId) : void
Parameters
- $appointmentDurationId : int|null
-
The appointment duration ID.
Return values
void —setCanBeScheduled()
Set whether the schedule can be scheduled.
public
setCanBeScheduled(bool|null $canBeScheduled) : void
Parameters
- $canBeScheduled : bool|null
-
Whether the schedule can be scheduled.
Return values
void —setCreatedAt()
Set the creation date and time.
public
setCreatedAt(DateTime|null $createdAt) : void
Parameters
- $createdAt : DateTime|null
-
The creation date and time.
Return values
void —setId()
Set the schedule ID.
public
setId(int|null $id) : void
Parameters
- $id : int|null
-
The schedule ID.
Return values
void —setMedicalCenterId()
Set the medical center ID.
public
setMedicalCenterId(int|null $medicalCenterId) : void
Parameters
- $medicalCenterId : int|null
-
The medical center ID.
Return values
void —setTimeSlots()
Set the list of time slots.
public
setTimeSlots(array<string, ScheduleTimeSlotDomain>|null $timeSlots) : void
Parameters
- $timeSlots : array<string, ScheduleTimeSlotDomain>|null
-
The list of time slots.