Medical Appointments API

MunicipalityDomain
in package
implements JsonSerializable

Represents a municipality domain.

Tags
OA\Schema

( schema="Municipality", title="Municipality", description="Municipality domain object", @OA\Property( property="id", type="integer", description="Municipality ID" ), @OA\Property( property="name", type="string", description="Municipality name" ), @OA\Property( property="provinceId", type="integer", description="Province ID" ), @OA\Property( property="province", description="Province object", @OA\Schema(ref="#/components/schemas/Province") ), @OA\Property( property="latitude", type="number", format="float", description="Municipality latitude" ), @OA\Property( property="longitude", type="number", format="float", description="Municipality longitude" ) )

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

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.

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

setProvinceId()

Set the province ID.

public setProvinceId(int|null $provinceId) : self
Parameters
$provinceId : int|null

The province ID.

Return values
self

Search results