ProductAttributeRepositoryDeleter
in package
implements
ProductAttributeRepositoryDeleterInterface
Class ProductAttributeRepositoryDeleter
Tags
Interfaces, Classes and Traits
- ProductAttributeRepositoryDeleterInterface
- Interface ProductAttributeRepositoryDeleterInterface
Table of Contents
- $db : CI_DB_query_builder
- $tableName : string
- __construct() : mixed
- Initialize the product attribute repository deleter.
- deleteAttributeById() : ProductAttributeRepositoryDeleter|$this
- Removes a product attribute entity by the given product attribute id.
- deleteAttributesByProductId() : ProductAttributeRepositoryDeleter|$this
- Removes all product attributes entities that belongs to the given product entity id.
Properties
$db
protected
CI_DB_query_builder
$db
$tableName
protected
string
$tableName
= 'products_attributes'
Methods
__construct()
Initialize the product attribute repository deleter.
public
__construct(CI_DB_query_builder $db) : mixed
Parameters
- $db : CI_DB_query_builder
-
Instance to perform db delete actions.
Return values
mixed —deleteAttributeById()
Removes a product attribute entity by the given product attribute id.
public
deleteAttributeById(IdType $productAttributeId) : ProductAttributeRepositoryDeleter|$this
Parameters
- $productAttributeId : IdType
-
Id of attribute entity to delete.
Return values
ProductAttributeRepositoryDeleter|$this —Same instance for chained method calls.
deleteAttributesByProductId()
Removes all product attributes entities that belongs to the given product entity id.
public
deleteAttributesByProductId(IdType $productId) : ProductAttributeRepositoryDeleter|$this
Parameters
- $productId : IdType
-
Id of product entity which belongs to the product attribute entities to delete.
Return values
ProductAttributeRepositoryDeleter|$this —Same instance for chained method calls.