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