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()
¶
CatalogCreateStruct.php
:
56
Construct object optionally with a set of properties.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
| $criterion | CriterionInterface | - | - |
| $names | array<string, string> | - | - |
| $descriptions | array<string, string> | - | - |
| $status | string | Status::DRAFT_PLACE | - |
| $creatorId | int|null | null | - |
addDescription()
¶
CatalogCreateStruct.php
:
100
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageCode | string | - | - |
| $description | string | - | - |
addName()
¶
CatalogCreateStruct.php
:
87
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageCode | string | - | - |
| $name | string | - | - |
getCreatorId()
¶
CatalogCreateStruct.php
:
118
|
|
|
Return values
int|null
getCriterion()
¶
CatalogCreateStruct.php
:
133
|
|
|
Return values
getDescription()
¶
CatalogCreateStruct.php
:
105
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageCode | string | - | - |
Return values
string
getDescriptions()
¶
CatalogCreateStruct.php
:
113
|
|
|
Return values
array<string, string>
getIdentifier()
¶
CatalogCreateStruct.php
:
77
|
|
|
Return values
string
getName()
¶
CatalogCreateStruct.php
:
82
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageCode | string | - | - |
Return values
string
getNames()
¶
CatalogCreateStruct.php
:
95
|
|
|
Return values
array<string, string>
getStatus()
¶
CatalogCreateStruct.php
:
128
|
|
|
Return values
string
setCreatorId()
¶
CatalogCreateStruct.php
:
123
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $creatorId | int | - | - |
setCriterion()
¶
CatalogCreateStruct.php
:
138
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $criterion | CriterionInterface | - | - |
getProperties()
¶
ValueObject.php
:
53
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>