Copied!

CustomerGroupPriceCreateStruct

CustomerGroupPriceCreateStruct.php : 16

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

public__construct()

CustomerGroupPriceCreateStruct.php : 23

Construct object optionally with a set of properties.

public __construct(CustomerGroupInterface $customerGroup, ProductInterface $product, CurrencyInterface $currency, Money $money, Money|null $customPriceMoney, numeric-string|null $customPriceRule)

Parameters

Name Type Default value Description
$customerGroup CustomerGroupInterface - -
$product ProductInterface - -
$currency CurrencyInterface - -
$money Money - -
$customPriceMoney Money|null - -
$customPriceRule numeric-string|null - -

publicexecute()

AbstractPriceCreateStruct.php : 87
public execute(ProductPriceServiceInterface $productPriceService) : void

Parameters

Name Type Default value Description
$productPriceService ProductPriceServiceInterface - -

publicgetAmount()

AbstractPriceCreateStruct.php : 64
public getAmount() : numeric-string

Return values

numeric-string

publicgetCurrency()

AbstractPriceCreateStruct.php : 69
public getCurrency() : CurrencyInterface

Return values

CurrencyInterface

publicgetCustomerGroup()

CustomerGroupPriceCreateStruct.php : 47
public getCustomerGroup() : CustomerGroupInterface

Return values

CustomerGroupInterface

publicgetCustomerGroupId()

CustomerGroupPriceCreateStruct.php : 52
public getCustomerGroupId() : int

Return values

int

publicgetCustomPrice()

AbstractPriceCreateStruct.php : 74
public getCustomPrice() : Money|null

Return values

Money|null

publicgetCustomPriceRule()

AbstractPriceCreateStruct.php : 82
public getCustomPriceRule() : numeric-string|null

Return values

numeric-string|null

publicgetDiscriminator()

CustomerGroupPriceCreateStruct.php : 42

Return a value that all identifies ProductPrice specific type.

public static getDiscriminator() : string

Return values

string

publicgetMoney()

AbstractPriceCreateStruct.php : 56
public getMoney() : Money

Return values

Money

publicgetProduct()

AbstractPriceCreateStruct.php : 51
public getProduct() : ProductInterface

Return values

ProductInterface

protectedgetProperties()

ValueObject.php : 54

Returns list of available properties' names.

protected getProperties([array<int, string> $dynamicProperties = [] ]) : array<int, string>

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>

Tags
Serializerignore

()