CustomerGroupAccessRepository

Implements \CustomerGroupAccessRepositoryInterface

Class CustomerGroupAccessRepository

category

System

package

CustomerGroup

subpackage

Repositories

Methods

CustomerGroupAccessRepository constructor.

__construct(\CustomerGroupFactory $factory, \CustomerGroupReaderInterface $reader, \LanguageProvider $languageProvider) 

Arguments

$languageProvider

\LanguageProvider

To convert language id's to language codes.

Creates with given array an CustomerGroupConfiguration

_createConfigurations(array $dataSet) : \CustomerGroupConfigurations

Arguments

$dataSet

array

Response

\CustomerGroupConfigurations

Creates with given array an CustomerGroupSetting

_createSettings(array $dataSet) : \CustomerGroupSettings

Arguments

$dataSet

array

Response

\CustomerGroupSettings

creates customer group entity.

create() : \CustomerGroup

Response

\CustomerGroup

New customer group entity.

Returns all customer group as collection.

getAll() : \CustomerGroupCollection
Throws
\UnexpectedValueException
\InvalidArgumentException

Response

\CustomerGroupCollection

Customer group collection.

Returns customer group entity by given id.

getById(\IntType $id) : \CustomerGroup

Arguments

$id

\IntType

IdType of entity to be returned.

Response

\CustomerGroup

Customer group collection.

Properties

factory

factory : \CustomerGroupFactory
var

Type(s)

\CustomerGroupFactory

reader

reader : \CustomerGroupReaderInterface

languageProvider

languageProvider : \LanguageProvider
var

Type(s)

\LanguageProvider