CustomerGroupFactory
in package
Class CustomerGroupFactory
Tags
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
$repository
private
CustomerGroupRepositoryInterface
$repository
Methods
__construct()
CustomerGroupFactory constructor.
public
__construct(CustomerGroupRepositoryInterface $repository) : mixed
Parameters
- $repository : CustomerGroupRepositoryInterface
Return values
mixed —createCollection()
Returns new instances of customer group collections.
public
createCollection() : CustomerGroupCollection
Return values
CustomerGroupCollection —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 —createEntity()
Returns new instances of customer group entities.
public
createEntity() : CustomerGroup
Return values
CustomerGroup —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