CustomerGroupPriceCreateStruct
        CustomerGroupPriceCreateStruct.php
                :
        16
                 
    
                                Final
                
                    
                Extends AbstractPriceCreateStruct
            
        
        
                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()
            ¶
    
        
        CustomerGroupPriceCreateStruct.php
                :
        23
                 
    
        Construct object optionally with a set of properties.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $customerGroup | CustomerGroupInterface | - | - | 
| $product | ProductInterface | - | - | 
| $currency | CurrencyInterface | - | - | 
| $money | Money | - | - | 
| $customPriceMoney | Money|null | - | - | 
| $customPriceRule | numeric-string|null | - | - | 
                 execute()
            ¶
execute()
            ¶
    
        
        AbstractPriceCreateStruct.php
                :
        87
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $productPriceService | ProductPriceServiceInterface | - | - | 
                 getAmount()
            ¶
getAmount()
            ¶
    
        
        AbstractPriceCreateStruct.php
                :
        64
                 
    
        |  |  | 
Return values
numeric-string
                 getCurrency()
            ¶
getCurrency()
            ¶
    
        
        AbstractPriceCreateStruct.php
                :
        69
                 
    
        |  |  | 
Return values
                 getCustomerGroup()
            ¶
getCustomerGroup()
            ¶
    
        
        CustomerGroupPriceCreateStruct.php
                :
        47
                 
    
        |  |  | 
Return values
                 getCustomerGroupId()
            ¶
getCustomerGroupId()
            ¶
    
        
        CustomerGroupPriceCreateStruct.php
                :
        52
                 
    
        |  |  | 
Return values
int
                 getCustomPrice()
            ¶
getCustomPrice()
            ¶
    
        
        AbstractPriceCreateStruct.php
                :
        74
                 
    
        |  |  | 
Return values
Money|null
                 getCustomPriceRule()
            ¶
getCustomPriceRule()
            ¶
    
        
        AbstractPriceCreateStruct.php
                :
        82
                 
    
        |  |  | 
Return values
numeric-string|null
                 getDiscriminator()
            ¶
getDiscriminator()
            ¶
    
        
        CustomerGroupPriceCreateStruct.php
                :
        42
                 
    
        Return a value that all identifies ProductPrice specific type.
|  |  | 
Return values
string
                 getMoney()
            ¶
getMoney()
            ¶
    
        
        AbstractPriceCreateStruct.php
                :
        56
                 
    
        |  |  | 
Return values
Money
                 getProduct()
            ¶
getProduct()
            ¶
    
        
        AbstractPriceCreateStruct.php
                :
        51
                 
    
        |  |  | 
Return values
                 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>