The base class for all value objects and structs.
Supports readonly properties by marking them as protected.
In this case they will only be writable using constructor, and need to be documented
using property-read
Methods¶
__construct() ¶
CatalogUpdateStruct.php
:
56
Construct object optionally with a set of properties.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$id | int | - | - |
$transition | string|null | null | - |
$identifier | string|null | null | - |
$criterion | CriterionInterface|null | null | - |
$names | array<string, string> | [] | - |
$descriptions | array<string, string> | [] | - |
addDescription() ¶
CatalogUpdateStruct.php
:
106
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$languageCode | string | - | - |
$description | string | - | - |
addName() ¶
CatalogUpdateStruct.php
:
93
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$languageCode | string | - | - |
$name | string | - | - |
getCriterion() ¶
CatalogUpdateStruct.php
:
150
|
|
Return values
CriterionInterface|null
getDescription() ¶
CatalogUpdateStruct.php
:
111
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$languageCode | string | - | - |
Return values
string
getDescriptions() ¶
CatalogUpdateStruct.php
:
119
|
|
Return values
array<string, string>
getId() ¶
CatalogUpdateStruct.php
:
78
|
|
Return values
int
getIdentifier() ¶
CatalogUpdateStruct.php
:
83
|
|
Return values
string|null
getName() ¶
CatalogUpdateStruct.php
:
88
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$languageCode | string | - | - |
Return values
string
getNames() ¶
CatalogUpdateStruct.php
:
101
|
|
Return values
array<string, string>
getStatus() ¶
CatalogUpdateStruct.php
:
145
|
|
Return values
string
getTransition() ¶
CatalogUpdateStruct.php
:
127
|
|
Return values
string|null
setCriterion() ¶
CatalogUpdateStruct.php
:
155
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$criterion | CriterionInterface|null | - | - |
setStatus() ¶
CatalogUpdateStruct.php
:
140
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$status | string | - | - |
setTransition() ¶
CatalogUpdateStruct.php
:
135
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$transition | string|null | - | - |
getProperties() ¶
ValueObject.php
:
50
Function where list of properties are returned.
|
|
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>