MunicipalityDomain
in package
implements
JsonSerializable
Represents a municipality domain.
Tags
Interfaces, Classes, Traits and Enums
- JsonSerializable
Table of Contents
- $id : int|null
- $latitude : float|null
- $longitude : float|null
- $name : string|null
- $province : ProvinceDomain|null
- $provinceId : int|null
- getId() : int|null
- Get the municipality ID.
- getLatitude() : float|null
- Get the municipality latitude.
- getLongitude() : float|null
- Get the municipality longitude.
- getName() : string|null
- Get the municipality name.
- getProvince() : ProvinceDomain|null
- Get the province object.
- getProvinceId() : int|null
- Get the province ID.
- jsonSerialize() : array<string|int, mixed>
- Description of the jsonSerialize method.
- setId() : self
- Set the municipality ID.
- setLatitude() : self
- Set the municipality latitude.
- setLongitude() : self
- Set the municipality longitude.
- setName() : self
- Set the municipality name.
- setProvince() : self
- Set the province object.
- setProvinceId() : self
- Set the province ID.
Properties
$id
private
int|null
$id
= null
Municipality ID
$latitude
private
float|null
$latitude
= null
Municipality latitude
$longitude
private
float|null
$longitude
= null
Municipality longitude
$name
private
string|null
$name
= null
Municipality name
$province
private
ProvinceDomain|null
$province
Province object
$provinceId
private
int|null
$provinceId
= null
Province ID
Methods
getId()
Get the municipality ID.
public
getId() : int|null
Return values
int|null —The municipality ID.
getLatitude()
Get the municipality latitude.
public
getLatitude() : float|null
Return values
float|null —The municipality latitude.
getLongitude()
Get the municipality longitude.
public
getLongitude() : float|null
Return values
float|null —The municipality longitude.
getName()
Get the municipality name.
public
getName() : string|null
Return values
string|null —The municipality name.
getProvince()
Get the province object.
public
getProvince() : ProvinceDomain|null
Return values
ProvinceDomain|null —The province object.
getProvinceId()
Get the province ID.
public
getProvinceId() : int|null
Return values
int|null —The province ID.
jsonSerialize()
Description of the jsonSerialize method.
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —Description of the return value.
setId()
Set the municipality ID.
public
setId(int|null $id) : self
Parameters
- $id : int|null
-
The municipality ID.
Return values
self —setLatitude()
Set the municipality latitude.
public
setLatitude(float|null $latitude) : self
Parameters
- $latitude : float|null
-
The municipality latitude.
Return values
self —setLongitude()
Set the municipality longitude.
public
setLongitude(float|null $longitude) : self
Parameters
- $longitude : float|null
-
The municipality longitude.
Return values
self —setName()
Set the municipality name.
public
setName(string|null $name) : self
Parameters
- $name : string|null
-
The municipality name.
Return values
self —setProvince()
Set the province object.
public
setProvince(ProvinceDomain|null $province) : self
Parameters
- $province : ProvinceDomain|null
-
The province object.
Return values
self —setProvinceId()
Set the province ID.
public
setProvinceId(int|null $provinceId) : self
Parameters
- $provinceId : int|null
-
The province ID.