Medical Appointments API

ProvinceDomain
in package
implements JsonSerializable

Represents a province domain.

Tags
OA\Schema

( schema="Province", title="Province", description="Represents a province domain.", required={"id", "name"}, @OA\Property( property="id", type="integer", description="The ID of the province.", format="int32", example=1 ), @OA\Property( property="name", type="string", description="The name of the province.", example="Madrid" ) )

Interfaces, Classes, Traits and Enums

JsonSerializable

Table of Contents

$id  : int|null
$name  : string|null
getId()  : int|null
Gets the ID of the province.
getName()  : string|null
Gets the name of the province.
jsonSerialize()  : array<string|int, mixed>
Serializes the province domain to JSON.
setId()  : void
Sets the ID of the province.
setName()  : void
Sets the name of the province.

Properties

$name

private string|null $name = null

The name of the province.

Methods

getId()

Gets the ID of the province.

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

The ID of the province.

getName()

Gets the name of the province.

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

The name of the province.

jsonSerialize()

Serializes the province domain to JSON.

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

The serialized province domain.

setId()

Sets the ID of the province.

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

The ID of the province.

Return values
void

setName()

Sets the name of the province.

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

The name of the province.

Return values
void

Search results