Repository
in package
implements
RepositoryInterface
Class Repository
Interfaces, Classes and Traits
- RepositoryInterface
- Interface ProductImageRepositoryInterface
Table of Contents
- $factory : ImageFactoryInterface
- $reader : ReaderInterface
- __construct() : mixed
- ProductImageRepository constructor.
- getProductImages() : SellingUnitImageCollectionInterface
- mainProductImage() : SellingUnitImageInterface|null
Properties
$factory
protected
ImageFactoryInterface
$factory
$reader
protected
ReaderInterface
$reader
Methods
__construct()
ProductImageRepository constructor.
public
__construct(ReaderInterface $reader, ImageFactoryInterface $factory) : mixed
Parameters
- $reader : ReaderInterface
- $factory : ImageFactoryInterface
Return values
mixed —getProductImages()
public
getProductImages(ProductId $id, LanguageId $languageId) : SellingUnitImageCollectionInterface
Parameters
- $id : ProductId
- $languageId : LanguageId
Tags
Return values
SellingUnitImageCollectionInterface —mainProductImage()
public
mainProductImage(ProductId $id, LanguageId $languageId) : SellingUnitImageInterface|null
Parameters
- $id : ProductId
- $languageId : LanguageId