ProductPriceWriteService

Implements \ProductPriceWriteServiceInterface

Class ProductPriceWriteService

category

System

package

ProductPrice

subpackage

Services

Methods

ProductPriceWriteService constructor.

__construct(\ProductPriceRepositoryInterface $repository) 

Arguments

Deletes the product price from the storage.

delete(\ProductPriceInterface $productPrice) : void

Arguments

$productPrice

\ProductPriceInterface

Product price to be removed.

Saves product price entity in the storage.

save(\ProductPriceInterface $productPrice, \IdType $productId) : \ProductPriceInterface
Throws
\EntityNotFoundException

Arguments

$productPrice

\ProductPriceInterface

Product price to be save.

$productId

\IdType

Id of product to be updated.

Response

\ProductPriceInterface

Properties

repository

repository : \ProductPriceRepositoryInterface