QuantityUnitReadService

Implements \QuantityUnitReadServiceInterface

Class QuantityUnitReadService

category

System

package

QuantityUnit

Methods

QuantityUnitReadService constructor.

__construct(\QuantityUnitRepositoryInterface $repository) 

Arguments

Returns quantity unit entities as collection.

getAll() : \QuantityUnitCollection

Returns quantity unit entity by given id.

getById(\IdType $quantityUnitId) : \QuantityUnitInterface

Arguments

$quantityUnitId

\IdType

Quantity unit entity to be given.

Response

\QuantityUnitInterface

Properties

repository

repository : \QuantityUnitRepositoryInterface