Свойство | Тип | Описание | |
---|---|---|---|
$definition | The {@see EntityDefinition} defining how this entity looks like. | ||
$entity | Holds the key value data of the entity. |
Метод | Описание | |
---|---|---|
__construct ( |
Constructor. | |
get ( string $field ) : mixed | Gets the value of a field in its specific type. | |
getDefinition ( ) : |
Gets the entity definition. | |
getRaw ( string $field ) : mixed | Gets the raw value of a field no matter what type it is. | |
populateViaRequest ( |
Populates the entities fields from the requests parameters. | |
set ( string $field, mixed $value ) | Sets a field value pair of this entity. |
Метод | Описание | |
---|---|---|
toType ( mixed $value, string $type ) : mixed | Converts a given value to the given type. |
public __construct ( |
||
$definition | the definition how this entity looks |
public getDefinition ( ) : |
||
Результат | the definition |
public populateViaRequest ( |
||
$request | the request to take the field data from |
protected $definition |