ProductAttributeRepositoryDeleter

Implements \ProductAttributeRepositoryDeleterInterface

Class ProductAttributeRepositoryDeleter

category

System

package

ProductModule

subpackage

Deleter

Methods

Initialize the product attribute repository deleter.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Instance to perform db delete actions.

Removes a product attribute entity by the given product attribute id.

deleteAttributeById(\IdType $productAttributeId) : \ProductAttributeRepositoryDeleter|$this

Arguments

$productAttributeId

\IdType

Id of attribute entity to delete.

Response

\ProductAttributeRepositoryDeleter|$this

Same instance for chained method calls.

Removes all product attributes entities that belongs to the given product entity id.

deleteAttributesByProductId(\IdType $productId) : \ProductAttributeRepositoryDeleter|$this

Arguments

$productId

\IdType

Id of product entity which belongs to the product attribute entities to delete.

Response

\ProductAttributeRepositoryDeleter|$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