phpDocumentor

ProductPriceWriter
in package
implements ProductPriceWriterInterface

Class ProductPriceWriter

Interfaces, Classes and Traits

ProductPriceWriterInterface
Interface ProductPriceWriterInterface

Table of Contents

$db  : CI_DB_query_builder
__construct()  : mixed
ProductPriceWriter constructor.
delete()  : void
Deletes a product price from the storage by the given id.
update()  : void
Updates the given product price data to a storage.

Properties

Methods

__construct()

ProductPriceWriter constructor.

public __construct(CI_DB_query_builder $db) : mixed
Parameters
$db : CI_DB_query_builder
Return values
mixed

delete()

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

public delete(IdType $productId) : void
Parameters
$productId : IdType

Id of product price to be removed.

Return values
void

update()

Updates the given product price data to a storage.

public update(array<string|int, mixed> $productPrice, IdType $productId) : void
Parameters
$productPrice : array<string|int, mixed>

Product price data to be updated.

$productId : IdType

Id of product price to be updated.

Return values
void

Search results