ManufacturerReadService
in package
implements
ManufacturerReadServiceInterface
Class ManufacturerReadService
Tags
Interfaces, Classes and Traits
- ManufacturerReadServiceInterface
- Interface ManufacturerReadServiceInterface
Table of Contents
- $repository : ManufacturerRepositoryInterface
- __construct() : mixed
- ManufacturerReadService constructor.
- getAll() : ManufacturerCollection
- Returns manufacturer entities as collection.
- getById() : ManufacturerInterface
- Returns manufacturer entity by given id.
- search() : ManufacturerCollection
- Searches for manufacturer entities that respects the given search condition and returns their data as a collection.
Properties
$repository
protected
ManufacturerRepositoryInterface
$repository
Methods
__construct()
ManufacturerReadService constructor.
public
__construct(ManufacturerRepositoryInterface $repository) : mixed
Parameters
- $repository : ManufacturerRepositoryInterface
Return values
mixed —getAll()
Returns manufacturer entities as collection.
public
getAll() : ManufacturerCollection
Return values
ManufacturerCollection —getById()
Returns manufacturer entity by given id.
public
getById(IdType $manufacturerId) : ManufacturerInterface
Parameters
- $manufacturerId : IdType
Tags
Return values
ManufacturerInterface —search()
Searches for manufacturer entities that respects the given search condition and returns their data as a collection.
public
search(ManufacturerSearchCondition $searchCondition[, Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : ManufacturerCollection
Parameters
- $searchCondition : ManufacturerSearchCondition
- $pager : Pager|null = null
-
(Optional) Pager object with pagination information
- $sorters : array<string|int, mixed> = []
-
(Optional) array of Sorter objects with data sorting information
Return values
ManufacturerCollection —Manufacturer collection.