phpDocumentor

ManufacturerRepository implements ManufacturerRepositoryInterface

Class ManufacturerRepository

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

ManufacturerRepositoryInterface
Interface ManufacturerRepositoryInterface

Table of Contents

$deleter  : ManufacturerDeleterInterface
$factory  : ManufacturerFactory
$languageProvider  : LanguageProvider
$reader  : ManufacturerReaderInterface
$writer  : ManufacturerWriterInterface
__construct()  : mixed
ManufacturerRepository constructor.
createManufacturer()  : Manufacturer
creates manufacturer entity.
delete()  : ManufacturerRepositoryInterface
Deletes manufacturer entity from database.
getAll()  : ManufacturerCollection
Returns all manufacturer as collection.
getById()  : ManufacturerInterface
Returns manufacturer entity by the given id.
save()  : ManufacturerRepositoryInterface
Saves manufacturer entity from database.
search()  : ManufacturerCollection
Searches for manufacturer entities that respects the given search condition and returns their data as a collection.
_mapReaderDataToCollection()  : ManufacturerCollection

Properties

Methods

__construct()

ManufacturerRepository constructor.

public __construct(ManufacturerFactory $factory, ManufacturerReaderInterface $reader, ManufacturerWriterInterface $writer, ManufacturerDeleterInterface $deleter, LanguageProvider $languageProvider) : mixed
Parameters
$factory : ManufacturerFactory
$reader : ManufacturerReaderInterface
$writer : ManufacturerWriterInterface
$deleter : ManufacturerDeleterInterface
$languageProvider : LanguageProvider
Return values
mixed

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

Tags
throws
Exception
Return values
ManufacturerCollection

Manufacturer collection.

Search results