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()
¶
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
:
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>