AppointmentEntity
extends BaseEntity
in package
This class represents an entity for appointments, extending the BaseEntity class.
The template parameter
Tags
Table of Contents
- $appointmentEnd : string|null
- $appointmentStart : string|null
- $createdAt : string|null
- $dni : string|null
- $email : string|null
- $fullName : string|null
- $id : mixed
- $phoneNumber : string|null
- $scheduleTimeSlotId : int|null
- $statusId : int|null
- bind() : void
- Bind data to the entity properties.
- fields() : array<string|int, mixed>
- Get the names of the entity properties as an array.
- getAppointmentEnd() : string|null
- Gets the end time of the appointment.
- getAppointmentStart() : string|null
- Gets the start time of the appointment.
- getCreatedAt() : string|null
- Gets the creation date of the appointment.
- getDni() : string|null
- Gets the DNI of the person who made the appointment.
- getEmail() : string|null
- Gets the email of the person who made the appointment.
- getFullName() : string|null
- Gets the full name of the person who made the appointment.
- getId() : I
- Get the ID of the entity.
- getPhoneNumber() : string|null
- Gets the phone number of the person who made the appointment.
- getScheduleTimeSlotId() : int|null
- Gets the ID of the schedule time slot.
- getStatusId() : int|null
- Gets the ID of the appointment status.
- setAppointmentEnd() : void
- Sets the end time of the appointment.
- setAppointmentStart() : void
- Sets the start time of the appointment.
- setCreatedAt() : void
- Sets the creation date of the appointment.
- setDni() : void
- Sets the DNI of the person who made the appointment.
- setEmail() : void
- Sets the email of the person who made the appointment.
- setFullName() : void
- Sets the full name of the person who made the appointment.
- setId() : void
- Set the ID of the entity.
- setPhoneNumber() : void
- Sets the phone number of the person who made the appointment.
- setScheduleTimeSlotId() : void
- Sets the ID of the schedule time slot.
- setStatusId() : void
- Sets the ID of the appointment status.
- values() : array<string|int, mixed>
- Get the values of the entity properties as an array.
- valuesAsMap() : array<string|int, mixed>
- Get the values of the entity properties as a map.
Properties
$appointmentEnd
private
string|null
$appointmentEnd
= null
The end time of the appointment.
$appointmentStart
private
string|null
$appointmentStart
= null
The start time of the appointment.
$createdAt
private
string|null
$createdAt
= null
The creation date of the appointment.
$dni
private
string|null
$dni
= null
The DNI of the person who made the appointment.
private
string|null
$email
= null
The email of the person who made the appointment.
$fullName
private
string|null
$fullName
= null
The full name of the person who made the appointment.
$id
private
mixed
$id
The ID of the entity. The type of the ID is determined by the template parameter.
$phoneNumber
private
string|null
$phoneNumber
= null
The phone number of the person who made the appointment.
$scheduleTimeSlotId
private
int|null
$scheduleTimeSlotId
= null
The ID of the schedule time slot.
$statusId
private
int|null
$statusId
= null
The ID of the appointment status.
Methods
bind()
Bind data to the entity properties.
public
bind(array<string|int, mixed> $data) : void
This method takes an associative array of data and binds the values to the entity's properties. It matches the keys of the data array with the properties defined in the entity's database model class, and if there is a match, it sets the property value using the corresponding setter method.
Parameters
- $data : array<string|int, mixed>
-
An associative array containing the data to bind to the entity properties.
Return values
void —fields()
Get the names of the entity properties as an array.
public
fields() : array<string|int, mixed>
Return values
array<string|int, mixed> —An array containing the names of the entity properties.
getAppointmentEnd()
Gets the end time of the appointment.
public
getAppointmentEnd() : string|null
Return values
string|null —The end time of the appointment.
getAppointmentStart()
Gets the start time of the appointment.
public
getAppointmentStart() : string|null
Return values
string|null —The start time of the appointment.
getCreatedAt()
Gets the creation date of the appointment.
public
getCreatedAt() : string|null
Return values
string|null —The creation date of the appointment.
getDni()
Gets the DNI of the person who made the appointment.
public
getDni() : string|null
Return values
string|null —The DNI of the person who made the appointment.
getEmail()
Gets the email of the person who made the appointment.
public
getEmail() : string|null
Return values
string|null —The email of the person who made the appointment.
getFullName()
Gets the full name of the person who made the appointment.
public
getFullName() : string|null
Return values
string|null —The full name of the person who made the appointment.
getId()
Get the ID of the entity.
public
getId() : I
Return values
I —The ID of the entity.
getPhoneNumber()
Gets the phone number of the person who made the appointment.
public
getPhoneNumber() : string|null
Return values
string|null —The phone number of the person who made the appointment.
getScheduleTimeSlotId()
Gets the ID of the schedule time slot.
public
getScheduleTimeSlotId() : int|null
Return values
int|null —The ID of the schedule time slot.
getStatusId()
Gets the ID of the appointment status.
public
getStatusId() : int|null
Return values
int|null —The ID of the appointment status.
setAppointmentEnd()
Sets the end time of the appointment.
public
setAppointmentEnd(string|null $appointmentEnd) : void
Parameters
- $appointmentEnd : string|null
-
The end time of the appointment.
Return values
void —setAppointmentStart()
Sets the start time of the appointment.
public
setAppointmentStart(string|null $appointmentStart) : void
Parameters
- $appointmentStart : string|null
-
The start time of the appointment.
Return values
void —setCreatedAt()
Sets the creation date of the appointment.
public
setCreatedAt(string|null $createdAt) : void
Parameters
- $createdAt : string|null
-
The creation date of the appointment.
Return values
void —setDni()
Sets the DNI of the person who made the appointment.
public
setDni(string|null $dni) : void
Parameters
- $dni : string|null
-
The DNI of the person who made the appointment.
Return values
void —setEmail()
Sets the email of the person who made the appointment.
public
setEmail(string|null $email) : void
Parameters
- $email : string|null
-
The email of the person who made the appointment.
Return values
void —setFullName()
Sets the full name of the person who made the appointment.
public
setFullName(string|null $fullName) : void
Parameters
- $fullName : string|null
-
The full name of the person who made the appointment.
Return values
void —setId()
Set the ID of the entity.
public
setId(I $id) : void
Parameters
- $id : I
-
The ID to set for the entity.
Return values
void —setPhoneNumber()
Sets the phone number of the person who made the appointment.
public
setPhoneNumber(string|null $phoneNumber) : void
Parameters
- $phoneNumber : string|null
-
The phone number of the person who made the appointment.
Return values
void —setScheduleTimeSlotId()
Sets the ID of the schedule time slot.
public
setScheduleTimeSlotId(int|null $scheduleTimeSlotId) : void
Parameters
- $scheduleTimeSlotId : int|null
-
The ID of the schedule time slot.
Return values
void —setStatusId()
Sets the ID of the appointment status.
public
setStatusId(int|null $statusId) : void
Parameters
- $statusId : int|null
-
The ID of the appointment status.
Return values
void —values()
Get the values of the entity properties as an array.
public
values() : array<string|int, mixed>
This method retrieves the values of all properties defined in the entity's database model class and returns them as an array. The array represents the values that can be used in database operations.
Return values
array<string|int, mixed> —An array containing the values of the entity properties.
valuesAsMap()
Get the values of the entity properties as a map.
public
valuesAsMap() : array<string|int, mixed>
This method retrieves the values of all properties defined in the entity's database model class and returns them as an associative array, where the keys represent the property names and the values are the corresponding property values.
Return values
array<string|int, mixed> —An associative array containing the values of the entity properties.