Class representing a relation between content.
Constants¶
                 ASSET        ¶
ASSET        ¶
    
        the relation type ASSET is set for a relation to asset in an attribute value.
|  |  | 
                 COMMON        ¶
COMMON        ¶
    
        The relation type COMMON is a general relation between object set by a user.
|  |  | 
                 EMBED        ¶
EMBED        ¶
    
        the relation type EMBED is set for a relation which is anchored as embedded link in an attribute value.
|  |  | 
                 FIELD        ¶
FIELD        ¶
    
        the relation type FIELD is set for a relation which is part of an relation attribute value.
|  |  | 
                 LINK        ¶
LINK        ¶
    
        the relation type LINK is set for a relation which is anchored as link in an attribute value.
|  |  | 
Properties¶
                 $destinationContentInfo
            ¶
        $destinationContentInfo
            ¶
    
        |  |  | 
                 $sourceContentInfo
            ¶
        $sourceContentInfo
            ¶
    
        |  |  | 
                 $id
            ¶
        $id
            ¶
    
        Id of the relation.
|  |  | 
                 $sourceFieldDefinitionIdentifier
            ¶
        $sourceFieldDefinitionIdentifier
            ¶
    
        Source content type Field Definition Id.
|  |  | 
For relation not of type RelationType::COMMON this field denotes the field definition id of the attribute where the relation is anchored.
                 $type
            ¶
        $type
            ¶
    
        The relation type bitmask.
|  |  | 
Tags
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> | [] | - | 
                 getDestinationContentInfo()
            ¶
getDestinationContentInfo()
            ¶
    
        the content of the destination content of the relation.
|  |  | 
Return values
                 getSourceContentInfo()
            ¶
getSourceContentInfo()
            ¶
    
        the content of the source content of the relation.
|  |  | 
Return values
                 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>