ManufacturerRepository

Implements \ManufacturerRepositoryInterface

Class ManufacturerRepository

category

System

package

Manufacturer

subpackage

Repositories

Methods

ManufacturerRepository constructor.

__construct(\ManufacturerFactory $factory, \ManufacturerReaderInterface $reader, \ManufacturerWriterInterface $writer, \ManufacturerDeleterInterface $deleter, \LanguageProvider $languageProvider) 

_mapReaderDataToCollection

_mapReaderDataToCollection( $manufacturerData) : \ManufacturerCollection
Throws
\Exception

Arguments

$manufacturerData

Response

\ManufacturerCollection

creates manufacturer entity.

createManufacturer() : \Manufacturer

Response

\Manufacturer

New manufacturer entity.

Deletes manufacturer entity from database.

delete(\ManufacturerInterface $manufacturer) : \ManufacturerRepositoryInterface

Arguments

$manufacturer

\ManufacturerInterface

Manufacturer entity to be deleted.

Response

\ManufacturerRepositoryInterface

Same instance for chained method calls.

Returns all manufacturer as collection.

getAll() : \ManufacturerCollection
Throws
\Exception

Response

\ManufacturerCollection

Manufacturer collection.

Returns manufacturer entity by the given id.

getById(\IdType $manufacturerId) : \ManufacturerInterface
Throws
\EntityNotFoundException

If no record was found with provided manufacturer entity id.

Arguments

$manufacturerId

\IdType

IdType of entity to be returned.

Response

\ManufacturerInterface

Saves manufacturer entity from database.

save(\ManufacturerInterface $manufacturer) : \ManufacturerRepositoryInterface

Arguments

$manufacturer

\ManufacturerInterface

Manufacturer entity to be saved.

Response

\ManufacturerRepositoryInterface

Same instance for chained method calls.

Properties

factory

factory : \ManufacturerFactory
var

Type(s)

\ManufacturerFactory

reader

reader : \ManufacturerReaderInterface

writer

writer : \ManufacturerWriterInterface

deleter

deleter : \ManufacturerDeleterInterface

languageProvider

languageProvider : \LanguageProvider
var

Type(s)

\LanguageProvider