Model implements Model, Validate, JsonSerializable
Interfaces, Classes and Traits
- Model
- Validate
- JsonSerializable
Table of Contents
- from() : static
- Initializing a model from an array
- jsonSerialize() : array<string|int, mixed>
Methods
from()
Initializing a model from an array
public
static from(array<string|int, mixed> $params) : static
Parameters
- $params : array<string|int, mixed>
-
Pass this parameter if you want to initial property value from an array. See API reference for all property names and types
Tags
Return values
static —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>