class GroupProduct implements PrimaryKeyInterface, GroupProductDependencyInterface

GroupProduct

Properties

protected bool $generatePrice If TRUE summarize grouped product prices, otherwise admin defines price

Methods

__construct()

No description

integer
getId()

Get id

mixed
getDiscount()

No description

setDiscount(float|null $discount)

No description

getBaseProduct()

No description

setBaseProduct(Product $baseProduct)

No description

addGroupedSimpleProduct(GroupSimpleProduct $groupSimpleProduct)

Add groupSimpleProduct

removeGroupedSimpleProduct(GroupSimpleProduct $groupSimpleProduct)

Remove groupSimpleProduct

Collection
getGroupedSimpleProducts()

Get groupSimpleProduct

setGroupedSimpleProducts(ArrayCollection $groupSimpleProduct)

No description

bool
isGeneratePrice()

No description

setGeneratePrice(bool $generatePrice)

No description

Details

at line 85
__construct()

at line 95
integer getId()

Get id

Return Value

integer

at line 103
mixed getDiscount()

Return Value

mixed

at line 113
GroupProduct setDiscount(float|null $discount)

Parameters

float|null $discount

Return Value

GroupProduct

at line 123
Product getBaseProduct()

Return Value

Product

at line 133
GroupProduct setBaseProduct(Product $baseProduct)

Parameters

Product $baseProduct

Return Value

GroupProduct

at line 147
GroupProduct addGroupedSimpleProduct(GroupSimpleProduct $groupSimpleProduct)

Add groupSimpleProduct

Parameters

GroupSimpleProduct $groupSimpleProduct

Return Value

GroupProduct

at line 162
GroupProduct removeGroupedSimpleProduct(GroupSimpleProduct $groupSimpleProduct)

Remove groupSimpleProduct

Parameters

GroupSimpleProduct $groupSimpleProduct

Return Value

GroupProduct

at line 175
Collection getGroupedSimpleProducts()

Get groupSimpleProduct

Return Value

Collection

at line 185
GroupProduct setGroupedSimpleProducts(ArrayCollection $groupSimpleProduct)

Parameters

ArrayCollection $groupSimpleProduct

Return Value

GroupProduct

at line 195
bool isGeneratePrice()

Return Value

bool

at line 205
GroupProduct setGeneratePrice(bool $generatePrice)

Parameters

bool $generatePrice

Return Value

GroupProduct