OrderCreateStruct
OrderCreateStruct.php
:
19
Extends ValueObject
Implements
WorkflowSubjectInterface
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()
¶
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
:
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>