ProductPriceWriteService
in package
implements
ProductPriceWriteServiceInterface
Class ProductPriceWriteService
Tags
Interfaces, Classes and Traits
- ProductPriceWriteServiceInterface
- Interface ProductPriceWriterRepositoryInterface
Table of Contents
- $repository : ProductPriceRepositoryInterface
- __construct() : mixed
- ProductPriceWriteService constructor.
- delete() : void
- Deletes the product price from the storage.
- save() : ProductPriceInterface
- Saves product price entity in the storage.
Properties
$repository
protected
ProductPriceRepositoryInterface
$repository
Methods
__construct()
ProductPriceWriteService constructor.
public
__construct(ProductPriceRepositoryInterface $repository) : mixed
Parameters
- $repository : ProductPriceRepositoryInterface
Return values
mixed —delete()
Deletes the product price from the storage.
public
delete(ProductPriceInterface $productPrice) : void
Parameters
- $productPrice : ProductPriceInterface
-
Product price to be removed.
Return values
void —save()
Saves product price entity in the storage.
public
save(ProductPriceInterface $productPrice, IdType $productId) : ProductPriceInterface
Parameters
- $productPrice : ProductPriceInterface
-
Product price to be save.
- $productId : IdType
-
Id of product to be updated.