The base class for all value objects and structs.
Methods¶
__construct() ¶
EntryAddStruct.php
:
31
Construct object optionally with a set of properties.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$product | ProductInterface | - | - |
$quantity | int | 1 | - |
getContext() ¶
EntryAddStruct.php
:
70
|
|
Return values
MapInterface<string, mixed>|null
getProduct() ¶
EntryAddStruct.php
:
44
|
|
Return values
getQuantity() ¶
EntryAddStruct.php
:
57
|
|
Return values
int
setContext() ¶
EntryAddStruct.php
:
78
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$context | MapInterface<string, mixed>|null | - | - |
setProduct() ¶
EntryAddStruct.php
:
52
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$product | ProductInterface | - | - |
setQuantity() ¶
EntryAddStruct.php
:
62
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$quantity | int | - | - |
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>