ProductPriceWriter

Implements \ProductPriceWriterInterface

Class ProductPriceWriter

package

Default

Methods

ProductPriceWriter constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Deletes a product price from the storage by the given id.

delete(\IdType $productId) : void

Arguments

$productId

\IdType

Id of product price to be removed.

Updates the given product price data to a storage.

update(array $productPrice, \IdType $productId) : void

Arguments

$productPrice

array

Product price data to be updated.

$productId

\IdType

Id of product price to be updated.

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder