Base SPI Value object.
All properties of SPI\ValueObject must be serializable for cache & NoSQL use.
Properties¶
$alwaysAvailable¶
If set, this value will change the always available flag.
|
|
$isHidden¶
If set, this value will change the hidden flag.
|
|
$mainLanguageId¶
If set, the content's main language will be changed.
|
|
$modificationDate¶
If set this value overrides the modification date.
|
|
Unix timestamp.
$name¶
If set, will change the content's "always-available" name.
|
|
$ownerId¶
If set, this value changes the content's owner ID.
|
|
$publicationDate¶
If set this value overrides the publication date of the content.
|
|
Unix timestamp.
$remoteId¶
If set, this value will change the content's remote ID.
|
|
Methods¶
__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>