CustomerGroupReadService
in package
implements
CustomerGroupReadServiceInterface
Class CustomerGroupReadService
Tags
Interfaces, Classes and Traits
- CustomerGroupReadServiceInterface
- Interface CustomerGroupReadServiceInterface
Table of Contents
- $repository : CustomerGroupAccessRepositoryInterface
- __construct() : mixed
- CustomerGroupReadService constructor.
- create() : CustomerGroup
- Creates customer group entity.
- getAll() : CustomerGroupCollection
- Returns customer group entities as collection.
- getById() : CustomerGroup
- Returns customer group by given id.
Properties
$repository
private
CustomerGroupAccessRepositoryInterface
$repository
Methods
__construct()
CustomerGroupReadService constructor.
public
__construct(CustomerGroupAccessRepositoryInterface $repository) : mixed
Parameters
- $repository : CustomerGroupAccessRepositoryInterface
Return values
mixed —create()
Creates customer group entity.
public
create() : CustomerGroup
Return values
CustomerGroup —new customer group entity.
getAll()
Returns customer group entities as collection.
public
getAll() : CustomerGroupCollection
Return values
CustomerGroupCollection —getById()
Returns customer group by given id.
public
getById(IntType $id) : CustomerGroup
Parameters
- $id : IntType
-
Customer group id.