ManufacturerReadService

Implements \ManufacturerReadServiceInterface

Class ManufacturerReadService

category

System

package

Manufacturer

Methods

ManufacturerReadService constructor.

__construct(\ManufacturerRepositoryInterface $repository) 

Arguments

Returns manufacturer entities as collection.

getAll() : \ManufacturerCollection

Returns manufacturer entity by given id.

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

If no record was found with provided manufacturer entity id.

Arguments

$manufacturerId

\IdType

Response

\ManufacturerInterface

Properties

repository

repository : \ManufacturerRepositoryInterface