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