phpDocumentor

CustomerGroupFactory

Class CustomerGroupFactory

Tags
category

System

subpackage

Factories

Table of Contents

$repository  : CustomerGroupRepositoryInterface
__construct()  : mixed
CustomerGroupFactory constructor.
createCollection()  : CustomerGroupCollection
Returns new instances of customer group collections.
createConfigurations()  : CustomerGroupConfigurations
Returns a new instance of customer group configuration.
createEntity()  : CustomerGroup
Returns new instances of customer group entities.
createSettings()  : CustomerGroupSettings
Returns a new instance of customer group settings.

Properties

Methods

createConfigurations()

Returns a new instance of customer group configuration.

public createConfigurations(DecimalType $discount, DecimalType $otDiscount[, DecimalType|null $minOrder = null ][, DecimalType|null $maxOrder = null ][, array<string|int, mixed> $unallowedPaymentModules = [] ][, array<string|int, mixed> $unallowedShippingModules = [] ]) : CustomerGroupConfigurations
Parameters
$discount : DecimalType
$otDiscount : DecimalType
$minOrder : DecimalType|null = null
$maxOrder : DecimalType|null = null
$unallowedPaymentModules : array<string|int, mixed> = []
$unallowedShippingModules : array<string|int, mixed> = []
Return values
CustomerGroupConfigurations

createSettings()

Returns a new instance of customer group settings.

public createSettings(BoolType $statusPublic, BoolType $statusOtDiscount, BoolType $statusGraduatedPrices, BoolType $statusShowPrice, BoolType $statusShowPriceTax, BoolType $statusAddTaxOt, BoolType $statusDiscountAttributes, BoolType $statusFsk18Purchasable, BoolType $statusFsk18Display, BoolType $statusWriteReviews, BoolType $statusReadReviews) : CustomerGroupSettings
Parameters
$statusPublic : BoolType
$statusOtDiscount : BoolType
$statusGraduatedPrices : BoolType
$statusShowPrice : BoolType
$statusShowPriceTax : BoolType
$statusAddTaxOt : BoolType
$statusDiscountAttributes : BoolType
$statusFsk18Purchasable : BoolType
$statusFsk18Display : BoolType
$statusWriteReviews : BoolType
$statusReadReviews : BoolType
Return values
CustomerGroupSettings

Search results