Class ProductAttributeRepositoryWriter

Class ProductAttributeRepositoryWriter

ProductAttributeRepositoryWriter implements ProductAttributeRepositoryWriterInterface

Methods summary

public __construct( CI_DB_query_builder $db )

Initialize the product attribute repository writer.

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

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

public update( StoredProductAttributeInterface $productAttribute ) : ProductAttributeRepositoryWriter|ProductAttributeRepositoryWriter

Updates a product attribute entity.

Properties summary

protected $db : CI_DB_query_builder

		
protected $tableName : string
'products_attributes'