ProvinceDomain
in package
implements
JsonSerializable
Represents a province domain.
Tags
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
$id
private
int|null
$id
= null
The ID of the province.
$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.