AppointmentDurationDomain
in package
implements
JsonSerializable
Represents an appointment duration domain object.
Tags
Interfaces, Classes, Traits and Enums
- JsonSerializable
Table of Contents
- $id : int|null
- $minutes : int|null
- $name : string|null
- getId() : int|null
- Get the ID of the appointment duration.
- getMinutes() : int|null
- Get the duration in minutes.
- getName() : string|null
- Get the name of the appointment duration.
- jsonSerialize() : array<string|int, mixed>
- Serialize the appointment duration object to JSON format.
- setId() : void
- Set the ID of the appointment duration.
- setMinutes() : void
- Set the duration in minutes.
- setName() : void
- Set the name of the appointment duration.
Properties
$id
private
int|null
$id
= null
The ID of the appointment duration.
$minutes
private
int|null
$minutes
= null
The duration in minutes.
$name
private
string|null
$name
= null
The name of the appointment duration.
Methods
getId()
Get the ID of the appointment duration.
public
getId() : int|null
Return values
int|null —The ID of the appointment duration.
getMinutes()
Get the duration in minutes.
public
getMinutes() : int|null
Return values
int|null —The duration in minutes.
getName()
Get the name of the appointment duration.
public
getName() : string|null
Return values
string|null —The name of the appointment duration.
jsonSerialize()
Serialize the appointment duration object to JSON format.
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —An associative array representing the appointment duration object.
setId()
Set the ID of the appointment duration.
public
setId(int|null $id) : void
Parameters
- $id : int|null
-
The ID of the appointment duration.
Return values
void —setMinutes()
Set the duration in minutes.
public
setMinutes(int|null $minutes) : void
Parameters
- $minutes : int|null
-
The duration in minutes.
Return values
void —setName()
Set the name of the appointment duration.
public
setName(string|null $name) : void
Parameters
- $name : string|null
-
The name of the appointment duration.