ProductAttributeRepositoryWriter

Implements \ProductAttributeRepositoryWriterInterface

Class ProductAttributeRepositoryWriter

category

System

package

ProductModule

subpackage

Writer

Methods

Initialize the product attribute repository writer.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Adds a product attribute entity to a product by the given product id.

insertIntoProduct(\IdType $productId, \ProductAttributeInterface $productAttribute) : integer

Arguments

$productId

\IdType

Id of product entity which should belongs to the added attributes.

$productAttribute

\ProductAttributeInterface

Product attribute entity to add to the product.

Response

integer

Id of the stored product attribute.

Updates a product attribute entity.

update(\StoredProductAttributeInterface $productAttribute) : \ProductAttributeRepositoryWriter|$this

Arguments

$productAttribute

\StoredProductAttributeInterface

Product attribute entity to update.

Response

\ProductAttributeRepositoryWriter|$this

Same instance for chained method calls.

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

tableName

tableName : string
var

Type(s)

string