TimeZoneDomain
in package
implements
JsonSerializable
Represents a time zone domain object.
Tags
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.
$id
private
int|null
$id
= null
The ID 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.