Related
extends Base
in package
Class Related.
Table of Contents
- $id : int
- $name : string
- getArrayCopy() : array<string|int, mixed>
- Gets the attributes of this entity.
- getId() : int
- getName() : string
- setEntityAttributes() : $this
- Sets the attributes of this entity.
- setId() : Related
- setName() : Related
Properties
$id
protected
int
$id
$name
protected
string
$name
Methods
getArrayCopy()
Gets the attributes of this entity.
public
getArrayCopy() : array<string|int, mixed>
Return values
array<string|int, mixed> —getId()
public
getId() : int
Return values
int —getName()
public
getName() : string
Return values
string —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) : Related
Parameters
- $id : int
Return values
Related —setName()
public
setName(string $name) : Related
Parameters
- $name : string