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
:
108
|
|
|
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
:
154
|
|
|
Return values
CriterionInterface|null
getDescription()
¶
CatalogUpdateStruct.php
:
115
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageCode | string | - | - |
Return values
string
getDescriptions()
¶
CatalogUpdateStruct.php
:
123
|
|
|
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
:
103
|
|
|
Return values
array<string, string>
getStatus()
¶
CatalogUpdateStruct.php
:
149
|
|
|
Return values
string
getTransition()
¶
CatalogUpdateStruct.php
:
131
|
|
|
Return values
string|null
setCriterion()
¶
CatalogUpdateStruct.php
:
159
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $criterion | CriterionInterface|null | - | - |
setStatus()
¶
CatalogUpdateStruct.php
:
144
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $status | string | - | - |
setTransition()
¶
CatalogUpdateStruct.php
:
139
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $transition | string|null | - | - |
getProperties()
¶
ValueObject.php
:
53
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>
Attributes
- #[Ignore]