ProductPriceReadService

Implements \ProductPriceReadServiceInterface

Class ProductPriceReadService

category

System

package

ProductPrice

subpackage

Services

Methods

ProductPriceReadService constructor.

__construct(\ProductPriceRepositoryInterface $repository) 

Arguments

Returns product price by given id.

getById(\IdType $productId) : \ProductPriceInterface
Throws
\ProductPriceNotFoundException

Arguments

$productId

\IdType

Product id.

Response

\ProductPriceInterface

Returns the product quantity price.

getByQuantity(\IdType $productId, \IdType $customerGroupId, \DecimalType $quantity) : \GraduatedPriceInterface
Throws
\ProductQuantityPriceNotFoundException

Arguments

$productId

\IdType

Product id.

$customerGroupId

\IdType

Customer group id.

$quantity

\DecimalType

Quantity.

Response

\GraduatedPriceInterface

Properties

repository

repository : \ProductPriceRepositoryInterface