Copied!

Field

Field.php : 22
Extends ValueObject

This class represents a field of a content object.

Properties

protected $fieldDefIdentifier

Field.php : 35

The field definition identifier.

protected string $fieldDefIdentifier = ''

protected $fieldTypeIdentifier

Field.php : 50

Field type identifier.

protected string $fieldTypeIdentifier = ''

protected $id

Field.php : 30

The field id.

protected int|null $id = null

Value of null indicates the field is virtual and is not persisted (yet).

protected $languageCode

Field.php : 45

The language code.

protected string|null $languageCode = null

protected $value

Field.php : 40

A field type value or a value type which can be converted by the corresponding field type.

protected mixed $value = null

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> [] -

publicgetFieldDefinitionIdentifier()

Field.php : 57
public getFieldDefinitionIdentifier() : string

Return values

string

publicgetFieldTypeIdentifier()

Field.php : 72
public getFieldTypeIdentifier() : string

Return values

string

publicgetId()

Field.php : 52
public getId() : int|null

Return values

int|null

publicgetLanguageCode()

Field.php : 67
public getLanguageCode() : string|null

Return values

string|null

publicgetValue()

Field.php : 62
public getValue() : mixed

publicisVirtual()

Field.php : 80
public isVirtual() : bool

Return values

bool

protectedgetProperties()

ValueObject.php : 53

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]