The base class for all value objects and structs.
Supports read-only properties by marking them as protected.
In this case they will only be writable using constructor, and need to be documented
using @property-read <type> <$var>
annotation in class doc in addition to inline property doc.
Writable properties must be public and must be documented inline.
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
:
54
Returns list of available properties' names.
|
|
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>