ExceptionEntity
extends BaseEntity
in package
This class represents an entity for exceptions, extending the BaseEntity class.
The template parameter
Tags
Table of Contents
- $active : int|null
- $comment : string|null
- $createdAt : string|null
- $date : string|null
- $endTime : string|null
- $fullDay : int|null
- $id : mixed
- $medicalCenterId : int|null
- $startTime : string|null
- bind() : void
- Bind data to the entity properties.
- fields() : array<string|int, mixed>
- Get the names of the entity properties as an array.
- getActive() : int|null
- Gets whether the exception is active or not.
- getComment() : string|null
- Gets the comment for the exception.
- getCreatedAt() : string|null
- Gets the creation date of the exception.
- getDate() : string|null
- Gets the date of the exception.
- getEndTime() : string|null
- Gets the end time of the exception.
- getFullDay() : int|null
- Gets whether the exception is for a full day or not.
- getId() : I
- Get the ID of the entity.
- getMedicalCenterId() : int|null
- Gets the ID of the medical center for the exception.
- getStartTime() : string|null
- Gets the start time of the exception.
- setActive() : void
- Sets whether the exception is active or not.
- setComment() : void
- Sets the comment for the exception.
- setCreatedAt() : void
- Sets the creation date of the exception.
- setDate() : void
- Sets the date of the exception.
- setEndTime() : void
- Sets the end time of the exception.
- setFullDay() : void
- Sets whether the exception is for a full day or not.
- setId() : void
- Set the ID of the entity.
- setMedicalCenterId() : void
- Sets the ID of the medical center for the exception.
- setStartTime() : void
- Sets the start time of the exception.
- 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
$active
private
int|null
$active
= null
Whether the exception is active or not.
$comment
private
string|null
$comment
= null
The comment for the exception.
$createdAt
private
string|null
$createdAt
= null
The creation date of the exception.
$date
private
string|null
$date
= null
The date of the exception.
$endTime
private
string|null
$endTime
= null
The end time of the exception.
$fullDay
private
int|null
$fullDay
= null
Whether the exception is for a full day or not.
$id
private
mixed
$id
The ID of the entity. The type of the ID is determined by the template parameter.
$medicalCenterId
private
int|null
$medicalCenterId
= null
The ID of the medical center for the exception.
$startTime
private
string|null
$startTime
= null
The start time of the exception.
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.
getActive()
Gets whether the exception is active or not.
public
getActive() : int|null
Return values
int|null —Whether the exception is active or not.
getComment()
Gets the comment for the exception.
public
getComment() : string|null
Return values
string|null —The comment for the exception.
getCreatedAt()
Gets the creation date of the exception.
public
getCreatedAt() : string|null
Return values
string|null —The creation date of the exception.
getDate()
Gets the date of the exception.
public
getDate() : string|null
Return values
string|null —The date of the exception.
getEndTime()
Gets the end time of the exception.
public
getEndTime() : string|null
Return values
string|null —The end time of the exception.
getFullDay()
Gets whether the exception is for a full day or not.
public
getFullDay() : int|null
Return values
int|null —Whether the exception is for a full day or not.
getId()
Get the ID of the entity.
public
getId() : I
Return values
I —The ID of the entity.
getMedicalCenterId()
Gets the ID of the medical center for the exception.
public
getMedicalCenterId() : int|null
Return values
int|null —The ID of the medical center for the exception.
getStartTime()
Gets the start time of the exception.
public
getStartTime() : string|null
Return values
string|null —The start time of the exception.
setActive()
Sets whether the exception is active or not.
public
setActive(int|null $active) : void
Parameters
- $active : int|null
-
Whether the exception is active or not.
Return values
void —setComment()
Sets the comment for the exception.
public
setComment(string|null $comment) : void
Parameters
- $comment : string|null
-
The comment for the exception.
Return values
void —setCreatedAt()
Sets the creation date of the exception.
public
setCreatedAt(string|null $createdAt) : void
Parameters
- $createdAt : string|null
-
The creation date of the exception.
Return values
void —setDate()
Sets the date of the exception.
public
setDate(string|null $date) : void
Parameters
- $date : string|null
-
The date of the exception.
Return values
void —setEndTime()
Sets the end time of the exception.
public
setEndTime(string|null $endTime) : void
Parameters
- $endTime : string|null
-
The end time of the exception.
Return values
void —setFullDay()
Sets whether the exception is for a full day or not.
public
setFullDay(int|null $fullDay) : void
Parameters
- $fullDay : int|null
-
Whether the exception is for a full day or not.
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 —setMedicalCenterId()
Sets the ID of the medical center for the exception.
public
setMedicalCenterId(int|null $medicalCenterId) : void
Parameters
- $medicalCenterId : int|null
-
The ID of the medical center for the exception.
Return values
void —setStartTime()
Sets the start time of the exception.
public
setStartTime(string|null $startTime) : void
Parameters
- $startTime : string|null
-
The start time of the exception.
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.