ProductPriceReadService
in package
implements
ProductPriceReadServiceInterface
Class ProductPriceReadService
Tags
Interfaces, Classes and Traits
- ProductPriceReadServiceInterface
- Interface ProductPriceReadServiceInterface
Table of Contents
- $repository : ProductPriceRepositoryInterface
- __construct() : mixed
- ProductPriceReadService constructor.
- getById() : ProductPriceInterface
- Returns product price by given id.
- getByQuantity() : GraduatedPriceInterface
- Returns the product quantity price.
Properties
$repository
protected
ProductPriceRepositoryInterface
$repository
Methods
__construct()
ProductPriceReadService constructor.
public
__construct(ProductPriceRepositoryInterface $repository) : mixed
Parameters
- $repository : ProductPriceRepositoryInterface
Return values
mixed —getById()
Returns product price by given id.
public
getById(IdType $productId) : ProductPriceInterface
Parameters
- $productId : IdType
-
Product id.
Tags
Return values
ProductPriceInterface —getByQuantity()
Returns the product quantity price.
public
getByQuantity(IdType $productId, IdType $customerGroupId, DecimalType $quantity) : GraduatedPriceInterface
Parameters
- $productId : IdType
- $customerGroupId : IdType
- $quantity : DecimalType