CustomerGroupInterface
in
Interface CustomerGroupInterface
Tags
Table of Contents
- createBase() : CustomerGroup
- Create base data from chosen personal offers table.
- delete() : $this|CustomerGroupInterface
- Deletes customer group from database.
- getConfigurations() : CustomerGroupConfigurationsInterface
- Returns the customer group configurations.
- getId() : int
- Returns the customer group id.
- getMembers() : int
- Returns the customer group members number.
- getName() : string
- Returns the name.
- getNames() : array<string|int, mixed>
- Returns all language specific name.
- getSettings() : CustomerGroupSettingsInterface
- Returns the customer group settings.
- isDefault() : bool
- Returns the customer group default status.
- setConfigurations() : $this|CustomerGroupInterface
- Sets the customer group configurations.
- setDefault() : $this|CustomerGroupInterface
- Sets the customer group id.
- setId() : $this|CustomerGroupInterface
- Sets the customer group id.
- setMembers() : CustomerGroup
- Sets the number of members to the customer group.
- setName() : $this|CustomerGroupInterface
- Sets the name.
- setSettings() : $this|CustomerGroupInterface
- Sets the customer group settings.
- store() : $this|CustomerGroupInterface
- Saves customer group in database.
- update() : $this|CustomerGroupInterface
- Updates customer group in database.
Methods
createBase()
Create base data from chosen personal offers table.
public
createBase(IntType $baseId) : CustomerGroup
Parameters
- $baseId : IntType
Return values
CustomerGroup —delete()
Deletes customer group from database.
public
delete() : $this|CustomerGroupInterface
Return values
$this|CustomerGroupInterface —Same instance for chained method calls.
getConfigurations()
Returns the customer group configurations.
public
getConfigurations() : CustomerGroupConfigurationsInterface
Return values
CustomerGroupConfigurationsInterface —getId()
Returns the customer group id.
public
getId() : int
Return values
int —Customer group id.
getMembers()
Returns the customer group members number.
public
getMembers() : int
Return values
int —getName()
Returns the name.
public
getName(LanguageCode $languageCode) : string
Parameters
- $languageCode : LanguageCode
-
Language code for language specific name value.
Return values
string —Language specific name value.
getNames()
Returns all language specific name.
public
getNames() : array<string|int, mixed>
Return values
array<string|int, mixed> —Language specific name value.
getSettings()
Returns the customer group settings.
public
getSettings() : CustomerGroupSettingsInterface
Return values
CustomerGroupSettingsInterface —isDefault()
Returns the customer group default status.
public
isDefault() : bool
Return values
bool —Customer group default status.
setConfigurations()
Sets the customer group configurations.
public
setConfigurations(CustomerGroupConfigurationsInterface $configurations) : $this|CustomerGroupInterface
Parameters
- $configurations : CustomerGroupConfigurationsInterface
-
Customer group configurations.
Return values
$this|CustomerGroupInterface —Same instance for chained method calls.
setDefault()
Sets the customer group id.
public
setDefault(BoolType $default) : $this|CustomerGroupInterface
Parameters
- $default : BoolType
-
The customer group default group to set.
Return values
$this|CustomerGroupInterface —Same instance for chained method calls.
setId()
Sets the customer group id.
public
setId(IntType $id) : $this|CustomerGroupInterface
Parameters
- $id : IntType
-
The customer group id to be set.
Return values
$this|CustomerGroupInterface —Same instance for chained method calls.
setMembers()
Sets the number of members to the customer group.
public
setMembers(IntType $number) : CustomerGroup
Parameters
- $number : IntType
Return values
CustomerGroup —setName()
Sets the name.
public
setName(StringType $name, LanguageCode $languageCode) : $this|CustomerGroupInterface
Parameters
- $name : StringType
-
Name.
- $languageCode : LanguageCode
-
Language code for language specific name value.
Return values
$this|CustomerGroupInterface —Same instance for chained method calls.
setSettings()
Sets the customer group settings.
public
setSettings(CustomerGroupSettingsInterface $settings) : $this|CustomerGroupInterface
Parameters
- $settings : CustomerGroupSettingsInterface
-
Customer group settings.
Return values
$this|CustomerGroupInterface —Same instance for chained method calls.
store()
Saves customer group in database.
public
store() : $this|CustomerGroupInterface
Return values
$this|CustomerGroupInterface —Same instance for chained method calls.
update()
Updates customer group in database.
public
update() : $this|CustomerGroupInterface
Return values
$this|CustomerGroupInterface —Same instance for chained method calls.