ProductAttributeRepositoryReaderInterface
in
Interface ProductAttributeRepositoryReaderInterface
Tags
Table of Contents
- getAttributeById() : StoredProductAttributeInterface
- Returns a product attribute entity by the given product attribute id.
- getAttributesByProductId() : StoredProductAttributeCollection
- Returns a collection with all product attribute entities which belongs to the product entity by the given product id.
Methods
getAttributeById()
Returns a product attribute entity by the given product attribute id.
public
getAttributeById(IdType $productAttributeId) : StoredProductAttributeInterface
Parameters
- $productAttributeId : IdType
-
Id of expected product attribute entity.
Return values
StoredProductAttributeInterface —Expected product attribute entity.
getAttributesByProductId()
Returns a collection with all product attribute entities which belongs to the product entity by the given product id.
public
getAttributesByProductId(IdType $productId) : StoredProductAttributeCollection
Parameters
- $productId : IdType
-
Id of product entity which belongs to the expected product attribute entities.
Return values
StoredProductAttributeCollection —Collection which contains all expected product attribute entities.