ProductAttributeRepositoryReaderInterface

Extends

Interface ProductAttributeRepositoryReaderInterface

category

System

package

ProductModule

subpackage

Interface

Methods

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

getAttributeById(\IdType $productAttributeId) : \StoredProductAttributeInterface

Arguments

$productAttributeId

\IdType

Id of expected product attribute entity.

Response

\StoredProductAttributeInterface

Expected product attribute entity.

Returns a collection with all product attribute entities which belongs to the product entity by the given product id.

getAttributesByProductId(\IdType $productId) : \StoredProductAttributeCollection

Arguments

$productId

\IdType

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

Response

\StoredProductAttributeCollection

Collection which contains all expected product attribute entities.