State
extends Base
in package
Class State.
Table of Contents
- $active : bool
- $countryId : int
- $id : int
- $name : string
- $position : int
- $shortCode : string
- getArrayCopy() : array<string|int, mixed>
- Gets the attributes of this entity.
- getCountryId() : int
- getId() : int
- getName() : string
- getPosition() : int
- getShortCode() : string
- isActive() : bool
- setActive() : State
- setCountryId() : State
- setEntityAttributes() : $this
- Sets the attributes of this entity.
- setId() : State
- setName() : State
- setPosition() : State
- setShortCode() : State
Properties
$active
protected
bool
$active
$countryId
protected
int
$countryId
$id
protected
int
$id
$name
protected
string
$name
$position
protected
int
$position
$shortCode
protected
string
$shortCode
Methods
getArrayCopy()
Gets the attributes of this entity.
public
getArrayCopy() : array<string|int, mixed>
Return values
array<string|int, mixed> —getCountryId()
public
getCountryId() : int
Return values
int —getId()
public
getId() : int
Return values
int —getName()
public
getName() : string
Return values
string —getPosition()
public
getPosition() : int
Return values
int —getShortCode()
public
getShortCode() : string
Return values
string —isActive()
public
isActive() : bool
Return values
bool —setActive()
public
setActive(bool $active) : State
Parameters
- $active : bool
Return values
State —setCountryId()
public
setCountryId(int $countryId) : State
Parameters
- $countryId : int
Return values
State —setEntityAttributes()
Sets the attributes of this entity.
public
setEntityAttributes(array<string|int, mixed> $attributes) : $this
Parameters
- $attributes : array<string|int, mixed>
Return values
$this —setId()
public
setId(int $id) : State
Parameters
- $id : int
Return values
State —setName()
public
setName(string $name) : State
Parameters
- $name : string
Return values
State —setPosition()
public
setPosition(int $position) : State
Parameters
- $position : int
Return values
State —setShortCode()
public
setShortCode(string $shortCode) : State
Parameters
- $shortCode : string