Base SPI Value object.
All properties of SPI\ValueObject must be serializable for cache & NoSQL use.
Properties¶
$fieldDefinitionId
¶
Field.php
:
25
Corresponding field definition.
|
|
$id
¶
Field.php
:
18
Field ID.
|
|
$languageCode
¶
Field.php
:
46
Language code of this Field.
|
|
$type
¶
Field.php
:
32
Data type name.
|
|
$value
¶
Field.php
:
39
Value of the field.
|
|
$versionNo
¶
Field.php
:
53
|
|
Null if not created yet
Methods¶
__clone()
¶
Field.php
:
62
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()
¶
ValueObject.php
:
31
Construct object optionally with a set of properties.
|
|
Readonly properties values must be set using $properties
as they aren't writable anymore
after object has been created.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$properties | array<string, mixed> | [] | - |
getProperties()
¶
ValueObject.php
:
54
Returns list of available properties' names.
|
|
Override to add dynamic properties.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$dynamicProperties | array<int, string> | [] |
Additional dynamic properties exposed on the object |
Return values
array<int, string>