Class CustomerGroup

Class QuantityUnitCollection

CustomerGroup implements CustomerGroupInterface

Methods summary

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

CustomerGroup constructor.

public store( void ) :

Saves customer group in database.

public createBase( IntType $baseId ) : CustomerGroup

Create base data from chosen personal offers table.

public update( void ) :

Updates customer group in database.

public delete( void ) :

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

public getId( void ) : integer

Returns the customer group id.

public setId( IntType $id ) :

Sets the customer group id.

public getName( LanguageCode $languageCode ) : string

Returns the name.

public setName( StringType $name, LanguageCode $languageCode ) :

Sets the name.

public getNames( void ) : array

Returns all language specific name.

public getSettings( void ) : CustomerGroupSettingsInterface

Returns the customer group settings.

public setSettings( CustomerGroupSettingsInterface $settings ) :

Sets the customer group settings.

public getConfigurations( void ) : CustomerGroupConfigurationsInterface

Returns the customer group configurations.

public setConfigurations( CustomerGroupConfigurationsInterface $configurations ) :

Sets the customer group configurations.

public isDefault( void ) : boolean

Returns the customer group default status.

public setDefault( BoolType $default ) :

Sets the customer group id.

public getMembers( void ) : integer

Returns the customer group members number.

public setMembers( IntType $number ) : CustomerGroup

Sets the number of members to the customer group.

Properties summary

protected $id : integer

Customer group id.

0
protected $members : integer

Customer group member number.

0
protected $default : boolean

Customer Group default value.

false