ProductPriceMapperInterface
in
Interface ProductPriceMapperInterface
Tags
Table of Contents
- delete() : ProductPriceInterface
- Deletes the product price from the storage.
- findById() : ProductPriceInterface|null
- Returns the product price by given product id.
- findByQuantity() : GraduatedPriceInterface|null
- Returns the product prices that matches the given search condition.
- save() : ProductPriceInterface
- Saves or updates the given product price in the storage.
Methods
delete()
Deletes the product price from the storage.
public
delete(ProductPriceInterface $productPrice) : ProductPriceInterface
Parameters
- $productPrice : ProductPriceInterface
-
Product price to be removed.
Return values
ProductPriceInterface —findById()
Returns the product price by given product id.
public
findById(IdType $productId) : ProductPriceInterface|null
Parameters
- $productId : IdType
Return values
ProductPriceInterface|null —findByQuantity()
Returns the product prices that matches the given search condition.
public
findByQuantity(IdType $productId, IdType $customerGroupId, DecimalType $quantity) : GraduatedPriceInterface|null
Parameters
- $productId : IdType
-
Product id.
- $customerGroupId : IdType
-
Customer group id.
- $quantity : DecimalType
-
Quantity.
Return values
GraduatedPriceInterface|null —save()
Saves or updates the given product price in the storage.
public
save(ProductPriceInterface $productPrice, IdType $productId) : ProductPriceInterface
Parameters
- $productPrice : ProductPriceInterface
-
Product price to be saved or updated.
- $productId : IdType
-
Id of product to be updated.