CustomerGroupAccessRepository
in package
implements
CustomerGroupAccessRepositoryInterface
Class CustomerGroupAccessRepository
Tags
Interfaces, Classes and Traits
- CustomerGroupAccessRepositoryInterface
- Interface CustomerGroupAccessRepositoryInterface
Table of Contents
- $factory : CustomerGroupFactory
- $languageProvider : LanguageProvider
- $reader : CustomerGroupReaderInterface
- __construct() : mixed
- CustomerGroupAccessRepository constructor.
- create() : CustomerGroup
- creates customer group entity.
- getAll() : CustomerGroupCollection
- Returns all customer group as collection.
- getById() : CustomerGroup
- Returns customer group entity by given id.
- _createConfigurations() : CustomerGroupConfigurations
- Creates with given array an CustomerGroupConfiguration
- _createSettings() : CustomerGroupSettings
- Creates with given array an CustomerGroupSetting
Properties
$factory
private
CustomerGroupFactory
$factory
$languageProvider
private
LanguageProvider
$languageProvider
$reader
private
CustomerGroupReaderInterface
$reader
Methods
__construct()
CustomerGroupAccessRepository constructor.
public
__construct(CustomerGroupFactory $factory, CustomerGroupReaderInterface $reader, LanguageProvider $languageProvider) : mixed
Parameters
- $factory : CustomerGroupFactory
- $reader : CustomerGroupReaderInterface
- $languageProvider : LanguageProvider
-
To convert language id's to language codes.
Return values
mixed —create()
creates customer group entity.
public
create() : CustomerGroup
Return values
CustomerGroup —New customer group entity.
getAll()
Returns all customer group as collection.
public
getAll() : CustomerGroupCollection
Tags
Return values
CustomerGroupCollection —Customer group collection.
getById()
Returns customer group entity by given id.
public
getById(IntType $id) : CustomerGroup
Parameters
- $id : IntType
-
IdType of entity to be returned.
Return values
CustomerGroup —Customer group collection.
_createConfigurations()
Creates with given array an CustomerGroupConfiguration
protected
_createConfigurations(array<string|int, mixed> $dataSet) : CustomerGroupConfigurations
Parameters
- $dataSet : array<string|int, mixed>
Return values
CustomerGroupConfigurations —_createSettings()
Creates with given array an CustomerGroupSetting
protected
_createSettings(array<string|int, mixed> $dataSet) : CustomerGroupSettings
Parameters
- $dataSet : array<string|int, mixed>