OrderCreateStruct
OrderCreateStruct.php
:
19
Extends ValueObject
Implements
WorkflowSubjectInterface
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() ¶
OrderCreateStruct.php
:
43
Construct object optionally with a set of properties.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$user | OrderUserInterface | - | - |
$currency | OrderCurrencyInterface | - | - |
$value | OrderValueInterface | - | - |
$source | string | - | - |
$items | array<string|int, OrderItemInterface> | - | - |
$company | OrderCompanyInterface|null | null | - |
$context | MapInterface<string, mixed>|null | null | - |
getCompany() ¶
OrderCreateStruct.php
:
68
|
|
Return values
getContext() ¶
OrderCreateStruct.php
:
117
|
|
Return values
MapInterface<string, mixed>|null
getCurrency() ¶
OrderCreateStruct.php
:
73
|
|
Return values
getItems() ¶
OrderCreateStruct.php
:
101
|
|
Return values
array<string|int, OrderItemInterface>
getSource() ¶
OrderCreateStruct.php
:
83
|
|
Return values
string
getStatus() ¶
OrderCreateStruct.php
:
88
|
|
Return values
string
getUser() ¶
OrderCreateStruct.php
:
63
|
|
Return values
getValue() ¶
OrderCreateStruct.php
:
78
|
|
Return values
setContext() ¶
OrderCreateStruct.php
:
109
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$context | MapInterface<string, mixed>|null | - | - |
setStatus() ¶
OrderCreateStruct.php
:
93
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$status | string | - | - |
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>