Base SPI Value object.
All properties of SPI\ValueObject must be serializable for cache & NoSQL use.
Properties¶
                 $fieldDefinitionId
            ¶
        $fieldDefinitionId
            ¶
    
        
        Field.php
                :
        25
                 
    
        Corresponding field definition.
|  |  | 
                 $id
            ¶
        $id
            ¶
    
        
        Field.php
                :
        18
                 
    
        Field ID.
|  |  | 
                 $languageCode
            ¶
        $languageCode
            ¶
    
        
        Field.php
                :
        46
                 
    
        Language code of this Field.
|  |  | 
                 $type
            ¶
        $type
            ¶
    
        
        Field.php
                :
        32
                 
    
        Data type name.
|  |  | 
                 $value
            ¶
        $value
            ¶
    
        
        Field.php
                :
        39
                 
    
        Value of the field.
|  |  | 
                 $versionNo
            ¶
        $versionNo
            ¶
    
        
        Field.php
                :
        53
                 
    
        |  |  | 
Null if not created yet
Methods¶
                 __clone()
            ¶
__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()
            ¶
__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()
            ¶
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>