CustomerGroupRepository
in package
implements
CustomerGroupRepositoryInterface
Interface CustomerGroupRepository
Tags
Interfaces, Classes and Traits
- CustomerGroupRepositoryInterface
- Interface CustomerGroupRepositoryInterface
Table of Contents
- $deleter : CustomerGroupDeleterInterface
- $nonRemovableIds : mixed
- $writer : CustomerGroupWriterInterface
- __construct() : mixed
- createBase() : CustomerGroupRepository
- Create base data from chosen personal offers table.
- delete() : $this|CustomerGroupRepositoryInterface
- Deletes customer group from database.
- store() : $this|CustomerGroupRepositoryInterface
- Saves customer group in database.
- update() : $this|CustomerGroupRepositoryInterface
- Updates customer group in database.
Properties
$deleter
protected
CustomerGroupDeleterInterface
$deleter
$nonRemovableIds
protected
mixed
$nonRemovableIds
= [1, 2, 3]
$writer
protected
CustomerGroupWriterInterface
$writer
Methods
__construct()
public
__construct(CustomerGroupWriterInterface $writer, CustomerGroupDeleterInterface $deleter) : mixed
Parameters
- $writer : CustomerGroupWriterInterface
- $deleter : CustomerGroupDeleterInterface
Return values
mixed —createBase()
Create base data from chosen personal offers table.
public
createBase(IntType $customerGroupId, IntType $baseId) : CustomerGroupRepository
Parameters
Return values
CustomerGroupRepository —delete()
Deletes customer group from database.
public
delete(CustomerGroup $customerGroup) : $this|CustomerGroupRepositoryInterface
Parameters
- $customerGroup : CustomerGroup
-
Customer group to be deleted.
Return values
$this|CustomerGroupRepositoryInterface —Same instance for chained method calls.
store()
Saves customer group in database.
public
store(CustomerGroup $customerGroup) : $this|CustomerGroupRepositoryInterface
Parameters
- $customerGroup : CustomerGroup
-
Customer group entity to be saved.
Return values
$this|CustomerGroupRepositoryInterface —Same instance for chained method calls.
update()
Updates customer group in database.
public
update(CustomerGroup $customerGroup) : $this|CustomerGroupRepositoryInterface
Parameters
- $customerGroup : CustomerGroup
-
Customer group entity to be saved.
Return values
$this|CustomerGroupRepositoryInterface —Same instance for chained method calls.