Base SPI Value object.
All properties of SPI\ValueObject must be serializable for cache & NoSQL use.
Properties¶
$fieldDefinitionId¶
Corresponding field definition.
|
|
$id¶
Field ID.
|
|
$languageCode¶
Language code of this Field.
|
|
$type¶
Data type name.
|
|
$value¶
Value of the field.
|
|
$versionNo¶
|
|
Null if not created yet
Methods¶
__clone() ¶
Clone object properties.
|
|
Note: clone
keyword performs shallow copy of an object.
For properties being objects this means that a reference
is copied instead of the actual object.
__construct() ¶
Construct object optionally with a set of properties.
|
|
Readonly properties values must be set using $properties as they are not writable anymore after object has been created.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$properties | array<string|int, mixed> | [] | - |
getProperties() ¶
Function where list of properties are returned.
|
|
Used by attributes(), override to add dynamic properties
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$dynamicProperties | array<string|int, mixed> | [] |
Additional dynamic properties exposed on the object |
Return values
array<string|int, mixed>