Base SPI Value object.
All properties of SPI\ValueObject must be serializable for cache & NoSQL use.
Properties¶
                 $alwaysAvailable
            ¶
        $alwaysAvailable
            ¶
    
        |  |  | 
Always available flag
                 $fields
            ¶
        $fields
            ¶
    
        Contains *all* fields of the object to be created.
|  |  | 
This attribute should contain all fields (in all language) of the object to be created. If a field is not translatable, it may only occur once. The storage layer will automatically take care that such fields are assigned to each language version.
                 $initialLanguageId
            ¶
        $initialLanguageId
            ¶
    
        Language id the content was initially created in.
|  |  | 
                 $isHidden
            ¶
        $isHidden
            ¶
    
        Is hidden flag.
|  |  | 
                 $locations
            ¶
        $locations
            ¶
    
        ContentId, contentVersion and mainLocationId are allowed to be left empty when used on with this struct as these values are created by the create method.
|  |  | 
                 $mainLanguageId
            ¶
        $mainLanguageId
            ¶
    
        Optional, main language of the content, if not set $initialLanguageId will be used instead.
|  |  | 
Typical use is copy operations where content main language and version initial language might differ.
                 $modified
            ¶
        $modified
            ¶
    
        Modification date.
|  |  | 
                 $name
            ¶
        $name
            ¶
    
        |  |  | 
Eg. array( 'eng-GB' => "New Article" )
                 $ownerId
            ¶
        $ownerId
            ¶
    
        |  |  | 
                 $remoteId
            ¶
        $remoteId
            ¶
    
        |  |  | 
Remote identifier used as a custom identifier for the object
                 $sectionId
            ¶
        $sectionId
            ¶
    
        |  |  | 
                 $typeId
            ¶
        $typeId
            ¶
    
        |  |  | 
Methods¶
                 __construct()
            ¶
__construct()
            ¶
    
        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()
            ¶
getProperties()
            ¶
    
        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>