CustomerGroup

Implements \CustomerGroupInterface

Class QuantityUnitCollection

category

System

package

CustomerGroup

subpackage

Entities

Methods

CustomerGroup constructor.

__construct(\CustomerGroupRepositoryInterface $repository, \EditableKeyValueCollection $names, \CustomerGroupConfigurationsInterface $configurations, \CustomerGroupSettingsInterface $settings) 

Create base data from chosen personal offers table.

createBase(\IntType $baseId) : \CustomerGroup

Arguments

$baseId

\IntType

Response

\CustomerGroup

Deletes customer group entity data in database with personal offer table.

delete() : $this|\CustomerGroupInterface

Response

$this|\CustomerGroupInterface

Same instance for chained method calls.

Returns the customer group configurations.

getConfigurations() : \CustomerGroupConfigurationsInterface

Returns the customer group id.

getId() : integer

Response

integer

Customer group id.

Returns the customer group members number.

getMembers() : integer

Response

integer

Returns the name.

getName(\LanguageCode $languageCode) : string

Arguments

$languageCode

\LanguageCode

Language code for language specific name value.

Response

string

Language specific name value.

Returns all language specific name.

getNames() : array

Response

array

Language specific name value.

Returns the customer group settings.

getSettings() : \CustomerGroupSettingsInterface

Returns the customer group default status.

isDefault() : boolean

Response

boolean

Customer group default status.

Sets the customer group configurations.

setConfigurations(\CustomerGroupConfigurationsInterface $configurations) : $this|\CustomerGroupInterface

Arguments

$configurations

\CustomerGroupConfigurationsInterface

Customer group configurations.

Response

$this|\CustomerGroupInterface

Same instance for chained method calls.

Sets the customer group id.

setDefault(\BoolType $default) : $this|\CustomerGroupInterface

Arguments

$default

\BoolType

The customer group default group to set.

Response

$this|\CustomerGroupInterface

Same instance for chained method calls.

Sets the customer group id.

setId(\IntType $id) : $this|\CustomerGroupInterface

Arguments

$id

\IntType

The customer group id to be set.

Response

$this|\CustomerGroupInterface

Same instance for chained method calls.

Sets the number of members to the customer group.

setMembers(\IntType $number) : \CustomerGroup

Arguments

$number

\IntType

Response

\CustomerGroup

Sets the name.

setName(\StringType $name, \LanguageCode $languageCode) : $this|\CustomerGroupInterface

Arguments

$name

\StringType

Name.

$languageCode

\LanguageCode

Language code for language specific name value.

Response

$this|\CustomerGroupInterface

Same instance for chained method calls.

Sets the customer group settings.

setSettings(\CustomerGroupSettingsInterface $settings) : $this|\CustomerGroupInterface

Arguments

$settings

\CustomerGroupSettingsInterface

Customer group settings.

Response

$this|\CustomerGroupInterface

Same instance for chained method calls.

Saves customer group in database.

store() : $this|\CustomerGroupInterface

Response

$this|\CustomerGroupInterface

Same instance for chained method calls.

Updates customer group in database.

update() : $this|\CustomerGroupInterface

Response

$this|\CustomerGroupInterface

Same instance for chained method calls.

Properties

Customer group id.

id : integer
var

Type(s)

integer

Customer group member number.

members : integer
var

Type(s)

integer

Customer Group default value.

default : boolean
var

Type(s)

boolean

names

names : \EditableKeyValueCollection

settings

settings : \CustomerGroupSettingsInterface

configurations

configurations : \CustomerGroupConfigurationsInterface

repository

repository : \CustomerGroupRepositoryInterface