ExceptionDomain
in package
implements
JsonSerializable
Represents an exception domain object.
Tags
Interfaces, Classes, Traits and Enums
- JsonSerializable
Table of Contents
- $active : bool|null
- $comment : string|null
- $createdAt : DateTime|null
- $date : DateTime|null
- $endTime : string|null
- $fullDay : bool|null
- $id : int|null
- $medicalCenterId : int|null
- $startTime : string|null
- fromArray() : ExceptionDomain
- Creates an ExceptionDomain object from an array.
- getActive() : bool|null
- Returns whether the exception is active.
- getComment() : string|null
- Returns the comment of the exception.
- getCreatedAt() : DateTime|null
- Returns the creation date and time of the exception.
- getDate() : DateTime|null
- Returns the date of the exception.
- getEndTime() : string|null
- Returns the end time of the exception.
- getFullDay() : bool|null
- Returns whether the exception is for the full day.
- getId() : int|null
- Returns the unique identifier of the exception.
- getMedicalCenterId() : int|null
- Returns the unique identifier of the medical center.
- getStartTime() : string|null
- Returns the start time of the exception.
- jsonSerialize() : array<string|int, mixed>
- Returns an array representation of the ExceptionDomain object.
- setActive() : void
- Sets whether the exception is active.
- setComment() : void
- Sets the comment of the exception.
- setCreatedAt() : void
- Sets the creation date and time 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 the full day.
- setId() : void
- Sets the unique identifier of the exception.
- setMedicalCenterId() : void
- Sets the unique identifier of the medical center.
- setStartTime() : void
- Sets the start time of the exception.
Properties
$active
private
bool|null
$active
= null
Indicates if the exception is active.
$comment
private
string|null
$comment
= null
The comment of the exception.
$createdAt
private
DateTime|null
$createdAt
= null
The creation date and time of the exception.
$date
private
DateTime|null
$date
= null
The date of the exception.
$endTime
private
string|null
$endTime
= null
The end time of the exception in the format HH:mm.
$fullDay
private
bool|null
$fullDay
= null
Indicates if the exception is for the full day.
$id
private
int|null
$id
= null
The unique identifier of the exception.
$medicalCenterId
private
int|null
$medicalCenterId
= null
The unique identifier of the medical center.
$startTime
private
string|null
$startTime
= null
The start time of the exception in the format HH:mm.
Methods
fromArray()
Creates an ExceptionDomain object from an array.
public
static fromArray(array<string|int, mixed> $array) : ExceptionDomain
Parameters
- $array : array<string|int, mixed>
-
The array to create the object from.
Tags
Return values
ExceptionDomain —The created ExceptionDomain object.
getActive()
Returns whether the exception is active.
public
getActive() : bool|null
Return values
bool|null —Whether the exception is active.
getComment()
Returns the comment of the exception.
public
getComment() : string|null
Return values
string|null —The comment of the exception.
getCreatedAt()
Returns the creation date and time of the exception.
public
getCreatedAt() : DateTime|null
Return values
DateTime|null —The creation date and time of the exception.
getDate()
Returns the date of the exception.
public
getDate() : DateTime|null
Return values
DateTime|null —The date of the exception.
getEndTime()
Returns the end time of the exception.
public
getEndTime() : string|null
Return values
string|null —The end time of the exception.
getFullDay()
Returns whether the exception is for the full day.
public
getFullDay() : bool|null
Return values
bool|null —Whether the exception is for the full day.
getId()
Returns the unique identifier of the exception.
public
getId() : int|null
Return values
int|null —The unique identifier of the exception.
getMedicalCenterId()
Returns the unique identifier of the medical center.
public
getMedicalCenterId() : int|null
Return values
int|null —The unique identifier of the medical center.
getStartTime()
Returns the start time of the exception.
public
getStartTime() : string|null
Return values
string|null —The start time of the exception.
jsonSerialize()
Returns an array representation of the ExceptionDomain object.
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —The array representation of the ExceptionDomain object.
setActive()
Sets whether the exception is active.
public
setActive(bool|null $active) : void
Parameters
- $active : bool|null
-
Whether the exception is active.
Return values
void —setComment()
Sets the comment of the exception.
public
setComment(string|null $comment) : void
Parameters
- $comment : string|null
-
The comment of the exception.
Return values
void —setCreatedAt()
Sets the creation date and time of the exception.
public
setCreatedAt(DateTime|null $createdAt) : void
Parameters
- $createdAt : DateTime|null
-
The creation date and time of the exception.
Return values
void —setDate()
Sets the date of the exception.
public
setDate(DateTime|null $date) : void
Parameters
- $date : DateTime|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 the full day.
public
setFullDay(bool|null $fullDay) : void
Parameters
- $fullDay : bool|null
-
Whether the exception is for the full day.
Return values
void —setId()
Sets the unique identifier of the exception.
public
setId(int|null $id) : void
Parameters
- $id : int|null
-
The unique identifier of the exception.
Return values
void —setMedicalCenterId()
Sets the unique identifier of the medical center.
public
setMedicalCenterId(int|null $medicalCenterId) : void
Parameters
- $medicalCenterId : int|null
-
The unique identifier of the medical center.
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.