Stats
extends Model
in package
Table of Contents
- $created : JsonDateTime
- $id : int
- $updated : JsonDateTime
- $data : array<string|int, mixed>
- __construct() : mixed
- __set() : mixed
- addStatsItem() : void
- adds item to the stats array
- jsonSerialize() : array<string|int, mixed>
- Specify data which should be serialized to JSON
- update() : void
- Updates model properties with form data
- validate() : void
- Domain object save validation callback.
Properties
$created
public
JsonDateTime
$created
$id
public
int
$id
$updated
public
JsonDateTime
$updated
$data
private
array<string|int, mixed>
$data
Methods
__construct()
public
__construct([StatsArray|null $item = NULL ]) : mixed
Parameters
- $item : StatsArray|null = NULL
Return values
mixed —__set()
public
__set(string $name, mixed $value) : mixed
Parameters
- $name : string
- $value : mixed
Tags
Return values
mixed —addStatsItem()
adds item to the stats array
public
addStatsItem(StatsArray|null $item) : void
Parameters
- $item : StatsArray|null
Return values
void —jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —update()
Updates model properties with form data
public
update(stdClass $form) : void
Parameters
- $form : stdClass
Return values
void —validate()
Domain object save validation callback.
public
validate() : void
Any rules checks on each update, can be implemented here.