Medical Appointments API

MedicalCenterDomain
in package
implements JsonSerializable

Represents a Medical Center domain object.

Tags
OA\Schema

( schema="MedicalCenter", title="MedicalCenter", description="Medical Center domain object.", required={"id", "name", "latitude", "longitude", "zoneName", "createdAt", "active", "timeZone"}, @OA\Property ( property="id", description="The unique identifier of the medical center.", type="integer", format="int32", example=1 ), @OA\Property ( property="name", description="The name of the medical center.", type="string", example="Medical Center 1" ), @OA\Property ( property="latitude", description="The latitude coordinate of the medical center.", type="number", format="float", example=40.416775 ), @OA\Property ( property="longitude", description="The longitude coordinate of the medical center.", type="number", format="float", example=-3.703790 ), @OA\Property ( property="zoneName", description="The ID of the time zone associated with the medical center.", type="integer", format="int32", example=1 ), @OA\Property ( property="createdAt", description="The creation date and time of the medical center.", type="integer", format="int64", example=1617229200 ), @OA\Property ( property="active", description="Flag indicating if the medical center is active.", type="boolean", example=true ), @OA\Property ( property="timeZone", description="The time zone domain object associated with the medical center.", type="object", ref="#/components/schemas/TimeZone" ) )

Interfaces, Classes, Traits and Enums

JsonSerializable

Table of Contents

$active  : bool|null
$createdAt  : DateTime|null
$id  : int|null
$latitude  : float|null
$longitude  : float|null
$name  : string|null
$timeZone  : TimeZoneDomain|null
$zoneName  : string|null
getActive()  : bool|null
Get the active flag.
getCreatedAt()  : DateTime|null
Get the creation date and time.
getId()  : int|null
Get the unique identifier.
getLatitude()  : float|null
Get the latitude coordinate.
getLongitude()  : float|null
Get the longitude coordinate.
getName()  : string|null
Get the name.
getTimeZone()  : TimeZoneDomain|null
Get the time zone domain object.
getZoneName()  : string|null
Get the time zone ID.
jsonSerialize()  : array<string|int, mixed>
Convert the MedicalCenterDomain object to an associative array for JSON serialization.
setActive()  : self
Set the active flag.
setCreatedAt()  : self
Set the creation date and time.
setId()  : self
Set the unique identifier.
setLatitude()  : self
Set the latitude coordinate.
setLongitude()  : self
Set the longitude coordinate.
setName()  : self
Set the name.
setTimeZone()  : self
Set the time zone domain object.
setZoneName()  : self
Set the time zone ID.

Properties

$active

private bool|null $active = null

Flag indicating if the medical center is active.

$createdAt

private DateTime|null $createdAt = null

The creation date and time of the medical center.

$latitude

private float|null $latitude = null

The latitude coordinate of the medical center.

$longitude

private float|null $longitude = null

The longitude coordinate of the medical center.

$zoneName

private string|null $zoneName = null

The ID of the time zone associated with the medical center.

Methods

getActive()

Get the active flag.

public getActive() : bool|null
Return values
bool|null

The active flag.

getCreatedAt()

Get the creation date and time.

public getCreatedAt() : DateTime|null
Return values
DateTime|null

The creation date and time.

getId()

Get the unique identifier.

public getId() : int|null
Return values
int|null

The unique identifier.

getLatitude()

Get the latitude coordinate.

public getLatitude() : float|null
Return values
float|null

The latitude coordinate.

getLongitude()

Get the longitude coordinate.

public getLongitude() : float|null
Return values
float|null

The longitude coordinate.

getName()

Get the name.

public getName() : string|null
Return values
string|null

The name.

getZoneName()

Get the time zone ID.

public getZoneName() : string|null
Return values
string|null

The time zone ID.

jsonSerialize()

Convert the MedicalCenterDomain object to an associative array for JSON serialization.

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

The associative array representation of the MedicalCenterDomain object.

setActive()

Set the active flag.

public setActive(bool|null $active) : self
Parameters
$active : bool|null

The active flag.

Return values
self

setCreatedAt()

Set the creation date and time.

public setCreatedAt(DateTime|null $createdAt) : self
Parameters
$createdAt : DateTime|null

The creation date and time.

Return values
self

setId()

Set the unique identifier.

public setId(int|null $id) : self
Parameters
$id : int|null

The unique identifier.

Return values
self

setLatitude()

Set the latitude coordinate.

public setLatitude(float|null $latitude) : self
Parameters
$latitude : float|null

The latitude coordinate.

Return values
self

setLongitude()

Set the longitude coordinate.

public setLongitude(float|null $longitude) : self
Parameters
$longitude : float|null

The longitude coordinate.

Return values
self

setName()

Set the name.

public setName(string|null $name) : self
Parameters
$name : string|null

The name.

Return values
self

setZoneName()

Set the time zone ID.

public setZoneName(string|null $zoneName) : self
Parameters
$zoneName : string|null

The time zone ID.

Return values
self

Search results