Class CustomerGroup
Class QuantityUnitCollection
-
CustomerGroup
implements
CustomerGroupInterface
Methods summary
public
store( void )
:
Saves customer group in database.
Saves customer group in database.
Returns
$this|\CustomerGroupInterface Same instance for chained method calls.
Implementation of
public
createBase( IntType $baseId )
: CustomerGroup
Create base data from chosen personal offers table.
Create base data from chosen personal offers table.
Parameters
Returns
Implementation of
public
update( void )
:
Updates customer group in database.
Updates customer group in database.
Returns
$this|\CustomerGroupInterface Same instance for chained method calls.
Implementation of
public
delete( void )
:
Deletes customer group entity data in database with personal offer table.
Deletes customer group entity data in database with personal offer table.
Returns
$this|\CustomerGroupInterface Same instance for chained method calls.
Implementation of
public
getId( void )
: integer
Returns the customer group id.
Returns the customer group id.
Returns
integer
Customer group id.
Implementation of
public
setId( IntType $id )
:
Sets the customer group id.
Sets the customer group id.
Parameters
$id
- The customer group id to be set.
Returns
$this|\CustomerGroupInterface Same instance for chained method calls.
Implementation of
public
getName( LanguageCode $languageCode )
: string
Returns the name.
Parameters
$languageCode
- Language code for language specific name value.
Returns
string
Language specific name value.
Implementation of
public
setName( StringType $name, LanguageCode $languageCode )
:
Sets the name.
Parameters
$name
- Name.
$languageCode
- Language code for language specific name value.
Returns
$this|\CustomerGroupInterface Same instance for chained method calls.
Implementation of
public
getNames( void )
: array
Returns all language specific name.
Returns all language specific name.
Returns
array
Language specific name value.
Implementation of
public
setSettings( CustomerGroupSettingsInterface $settings )
:
Sets the customer group settings.
Sets the customer group settings.
Parameters
$settings
- Customer group settings.
Returns
$this|\CustomerGroupInterface Same instance for chained method calls.
Implementation of
public
setConfigurations( CustomerGroupConfigurationsInterface $configurations )
:
Sets the customer group configurations.
Sets the customer group configurations.
Parameters
$configurations
- Customer group configurations.
Returns
$this|\CustomerGroupInterface Same instance for chained method calls.
Implementation of
public
isDefault( void )
: boolean
Returns the customer group default status.
Returns the customer group default status.
Returns
boolean
Customer group default status.
Implementation of
public
setDefault( BoolType $default )
:
Sets the customer group id.
Sets the customer group id.
Parameters
$default
- The customer group default group to set.
Returns
$this|\CustomerGroupInterface Same instance for chained method calls.
Implementation of
public
getMembers( void )
: integer
Returns the customer group members number.
Returns the customer group members number.
Returns
integer
Implementation of
public
setMembers( IntType $number )
: CustomerGroup
Sets the number of members to the customer group.
Sets the number of members to the customer group.
Parameters
Returns
Implementation of
Properties summary
protected
$id
: integer
0
protected
$members
: integer
Customer group member number.
Customer group member number.
0
protected
$default
: boolean
Customer Group default value.
Customer Group default value.
false