Copied!

ObjectState

ObjectState.php : 24
Extends ValueObject

This class represents a object state value.

Properties

public $id read-only

ObjectState.php
public mixed $id

the id of the content type group

public $identifier read-only

ObjectState.php
public string $identifier

the identifier of the content type group

public $languageCodes read-only

ObjectState.php
public array<string|int, string> $languageCodes

the available languages

public $mainLanguageCode read-only

ObjectState.php
public string $mainLanguageCode

the default language of the object state names and descriptions used for fallback.

public $priority read-only

ObjectState.php
public int $priority

the priority in the group ordering

protected $id

ObjectState.php : 31

Primary key.

protected mixed $id

protected $identifier

ObjectState.php : 38

Readable string identifier of the object state.

protected string $identifier

protected $languageCodes

ObjectState.php : 52

The available language codes for names an descriptions.

protected array<string|int, string> $languageCodes

protected $priority

ObjectState.php : 45

Priority for ordering.

protected int $priority

Methods

public__construct()

ValueObject.php : 30

Construct object optionally with a set of properties.

public __construct([array<string|int, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they are not writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string|int, mixed> [] -

publicgetObjectStateGroup()

ObjectState.php : 59

The object state group this object state belongs to.

public abstract getObjectStateGroup() : ObjectStateGroup

Return values

ObjectStateGroup

protectedgetProperties()

ValueObject.php : 50

Function where list of properties are returned.

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

Used by attributes(), override to add dynamic properties

Parameters

Name Type Default value Description
$dynamicProperties array<string|int, mixed> []

Additional dynamic properties exposed on the object

Return values

array<string|int, mixed>