OrderCreateStruct
OrderCreateStruct.php
:
20
Final
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
:
44
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
:
69
|
|
|
Return values
getContext()
¶
OrderCreateStruct.php
:
118
|
|
|
Return values
MapInterface<string, mixed>|null
getCurrency()
¶
OrderCreateStruct.php
:
74
|
|
|
Return values
getItems()
¶
OrderCreateStruct.php
:
102
|
|
|
Return values
array<string|int, OrderItemInterface>
getSource()
¶
OrderCreateStruct.php
:
84
|
|
|
Return values
string
getStatus()
¶
OrderCreateStruct.php
:
89
|
|
|
Return values
string
getUser()
¶
OrderCreateStruct.php
:
64
|
|
|
Return values
getValue()
¶
OrderCreateStruct.php
:
79
|
|
|
Return values
setContext()
¶
OrderCreateStruct.php
:
110
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $context | MapInterface<string, mixed>|null | - | - |
setStatus()
¶
OrderCreateStruct.php
:
94
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $status | string | - | - |
getProperties()
¶
ValueObject.php
:
53
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>
Attributes
- #[Ignore]