Copied!

Relation

Relation.php : 22
Abstract
Extends ValueObject

Class representing a relation between content.

Properties

public $destinationContentInfo read-only

Relation.php
public ContentInfo $destinationContentInfo

Calls Relation::getDestinationContentInfo()

public $sourceContentInfo read-only

Relation.php
public ContentInfo $sourceContentInfo

Calls Relation::getSourceContentInfo()

protected $id

Relation.php : 27

ID of the relation.

protected int $id

protected $sourceFieldDefinitionIdentifier

Relation.php : 34

Source content type Field Definition identifier.

protected string|null $sourceFieldDefinitionIdentifier = null

For relation not of type RelationType::COMMON this field denotes the field definition identifier of the attribute where the relation is anchored.

protected $type

Relation.php : 39

The relation type bitmask of {@see RelationType} values.

protected int $type

Methods

public__construct()

ValueObject.php : 32

Construct object optionally with a set of properties.

public __construct([array<string, mixed> $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> [] -

publicgetDestinationContentInfo()

Relation.php : 53

the content of the destination content of the relation.

public abstract getDestinationContentInfo() : ContentInfo

Return values

ContentInfo

publicgetSourceContentInfo()

Relation.php : 46

the content of the source content of the relation.

public abstract getSourceContentInfo() : ContentInfo

Return values

ContentInfo

protectedgetProperties()

ValueObject.php : 52

Returns list of available properties' names.

protected getProperties([array<int, string> $dynamicProperties = [] ]) : array<int, string>

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>

Attributes
#[Ignore]