Medical Appointments API

TimeZoneDomain
in package
implements JsonSerializable

Represents a time zone domain object.

Tags
OA\Schema

( schema="TimeZone", title="TimeZone", description="Time zone domain object.", required={"id", "zoneName", "countryCode", "abbreviation", "timeStart", "gmtOffset", "dst"}, @OA\Property ( property="id", description="The unique identifier of the time zone.", type="integer", format="int32", example=1 ), @OA\Property ( property="zoneName", description="The name of the time zone.", type="string", example="Europe/Madrid" ), @OA\Property ( property="countryCode", description="The country code of the time zone.", type="string", example="ES" ), @OA\Property ( property="abbreviation", description="The abbreviation of the time zone.", type="string", example="CEST" ), @OA\Property ( property="timeStart", description="The time start of the time zone.", type="integer", format="int64", example=1619884800 ), @OA\Property ( property="gmtOffset", description="The GMT offset of the time zone.", type="integer", format="int32", example=7200 ), @OA\Property ( property="dst", description="The DST of the time zone.", type="boolean", example=true ) )

Interfaces, Classes, Traits and Enums

JsonSerializable

Table of Contents

$abbreviation  : string|null
$countryCode  : string|null
$dst  : bool|null
$gmtOffset  : int|null
$id  : int|null
$timeStart  : int|null
$zoneName  : string|null
getAbbreviation()  : string|null
Gets the abbreviation of the time zone.
getCountryCode()  : string|null
Gets the country code of the time zone.
getDst()  : bool|null
Gets whether the time zone observes daylight saving time.
getGmtOffset()  : int|null
Gets the GMT offset of the time zone.
getId()  : int|null
Gets the ID of the time zone.
getTimeStart()  : int|null
Gets the start time of the time zone.
getZoneName()  : string|null
Gets the name of the time zone.
jsonSerialize()  : array<string|int, mixed>
Serializes the time zone domain to JSON.
setAbbreviation()  : void
Sets the abbreviation of the time zone.
setCountryCode()  : void
Sets the country code of the time zone.
setDst()  : void
Sets whether the time zone observes daylight saving time.
setGmtOffset()  : void
Sets the GMT offset of the time zone.
setId()  : void
Sets the ID of the time zone.
setTimeStart()  : void
Sets the start time of the time zone.
setZoneName()  : void
Sets the name of the time zone.

Properties

$abbreviation

private string|null $abbreviation = null

The abbreviation of the time zone.

$countryCode

private string|null $countryCode = null

The country code of the time zone.

$dst

private bool|null $dst = null

Whether the time zone observes daylight saving time.

$gmtOffset

private int|null $gmtOffset = null

The GMT offset of the time zone.

$timeStart

private int|null $timeStart = null

The start time of the time zone.

$zoneName

private string|null $zoneName = null

The name of the time zone.

Methods

getAbbreviation()

Gets the abbreviation of the time zone.

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

The abbreviation of the time zone.

getCountryCode()

Gets the country code of the time zone.

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

The country code of the time zone.

getDst()

Gets whether the time zone observes daylight saving time.

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

Whether the time zone observes daylight saving time.

getGmtOffset()

Gets the GMT offset of the time zone.

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

The GMT offset of the time zone.

getId()

Gets the ID of the time zone.

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

The ID of the time zone.

getTimeStart()

Gets the start time of the time zone.

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

The start time of the time zone.

getZoneName()

Gets the name of the time zone.

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

The name of the time zone.

jsonSerialize()

Serializes the time zone domain to JSON.

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

The serialized time zone domain.

setAbbreviation()

Sets the abbreviation of the time zone.

public setAbbreviation(string|null $abbreviation) : void
Parameters
$abbreviation : string|null

The abbreviation of the time zone.

Return values
void

setCountryCode()

Sets the country code of the time zone.

public setCountryCode(string|null $countryCode) : void
Parameters
$countryCode : string|null

The country code of the time zone.

Return values
void

setDst()

Sets whether the time zone observes daylight saving time.

public setDst(bool|null $dst) : void
Parameters
$dst : bool|null

Whether the time zone observes daylight saving time.

Return values
void

setGmtOffset()

Sets the GMT offset of the time zone.

public setGmtOffset(int|null $gmtOffset) : void
Parameters
$gmtOffset : int|null

The GMT offset of the time zone.

Return values
void

setId()

Sets the ID of the time zone.

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

The ID of the time zone.

Return values
void

setTimeStart()

Sets the start time of the time zone.

public setTimeStart(int|null $timeStart) : void
Parameters
$timeStart : int|null

The start time of the time zone.

Return values
void

setZoneName()

Sets the name of the time zone.

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

The name of the time zone.

Return values
void

Search results