Class ProductAttributeRepositoryReader
Class ProductAttributeRepositoryReader
- ProductAttributeRepositoryReader implements ProductAttributeRepositoryReaderInterface
Package: ProductModule\Reader
Category: System
Located at Services/Core/ProductModule/Repositories/Reader/ProductAttributeRepositoryReader.inc.php
Category: System
Located at Services/Core/ProductModule/Repositories/Reader/ProductAttributeRepositoryReader.inc.php
Methods summary
public
__construct( CI_DB_query_builder $db, ProductAttributeFactoryInterface $factory )
Initialize the product attribute repository reader.
public
getAttributeById( IdType $productAttributeId )
: StoredProductAttributeInterface
Returns a product attribute entity by the given product attribute id.
public
getAttributesByProductId( IdType $productId )
: StoredProductAttributeCollection
Returns a collection with all product attribute entities which belongs to the product entity by the given product id.
protected
_callStoredProductAttributeSetter( StoredProductAttributeInterface $storedProductAttribute, array $data )
: ProductAttributeRepositoryReader|ProductAttributeRepositoryReader
Call the setter of the stored product attribute entity.