Copied!

ObjectStateCreateStruct

ObjectStateCreateStruct.php : 16
Extends ValueObject

This class represents a value for creating object states.

Properties

public $defaultLanguageCode

ObjectStateCreateStruct.php : 41

The default language code.

public string $defaultLanguageCode

Required.

public $descriptions

ObjectStateCreateStruct.php : 57

An array of descriptions with languageCode keys.

public array<string|int, string> $descriptions

public $identifier

ObjectStateCreateStruct.php : 25

Readable unique string identifier of a group.

public string $identifier

Required.

public $names

ObjectStateCreateStruct.php : 50

An array of names with languageCode keys.

public array<string|int, string> $names

Required. - at least one name in the main language is required

public $priority

ObjectStateCreateStruct.php : 32

Priority for ordering. If not set the object state is created as the last one.

public int $priority = false

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

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>