Medical Appointments API

AppointmentDurationDomain
in package
implements JsonSerializable

Represents an appointment duration domain object.

Tags
OA\Schema

( schema="AppointmentDuration", title="AppointmentDuration", description="Represents an appointment duration domain object.", required={"id", "name", "minutes"}, @OA\Property( property="id", type="integer", format="int32", description="The ID of the appointment duration.", example=1 ), @OA\Property( property="name", type="string", description="The name of the appointment duration.", example="30 minutes" ), @OA\Property( property="minutes", type="integer", format="int32", description="The duration in minutes.", example=30 ) )

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

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.

Return values
void

Search results