OrderCreateStruct
        OrderCreateStruct.php
                :
        19
                 
    
                                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()
            ¶
__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()
            ¶
getCompany()
            ¶
    
        
        OrderCreateStruct.php
                :
        68
                 
    
        |  |  | 
Return values
                 getContext()
            ¶
getContext()
            ¶
    
        
        OrderCreateStruct.php
                :
        117
                 
    
        |  |  | 
Return values
MapInterface<string, mixed>|null
                 getCurrency()
            ¶
getCurrency()
            ¶
    
        
        OrderCreateStruct.php
                :
        73
                 
    
        |  |  | 
Return values
                 getItems()
            ¶
getItems()
            ¶
    
        
        OrderCreateStruct.php
                :
        101
                 
    
        |  |  | 
Return values
array<string|int, OrderItemInterface>
                 getSource()
            ¶
getSource()
            ¶
    
        
        OrderCreateStruct.php
                :
        83
                 
    
        |  |  | 
Return values
string
                 getStatus()
            ¶
getStatus()
            ¶
    
        
        OrderCreateStruct.php
                :
        88
                 
    
        |  |  | 
Return values
string
                 getUser()
            ¶
getUser()
            ¶
    
        
        OrderCreateStruct.php
                :
        63
                 
    
        |  |  | 
Return values
                 getValue()
            ¶
getValue()
            ¶
    
        
        OrderCreateStruct.php
                :
        78
                 
    
        |  |  | 
Return values
                 setContext()
            ¶
setContext()
            ¶
    
        
        OrderCreateStruct.php
                :
        109
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $context | MapInterface<string, mixed>|null | - | - | 
                 setStatus()
            ¶
setStatus()
            ¶
    
        
        OrderCreateStruct.php
                :
        93
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $status | string | - | - | 
                 getProperties()
            ¶
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>