ProductDownloadRepository
extends AbstractEventDispatchingRepository
in package
implements
ProductDownloadRepository
Class ProductDownloadRepository
Interfaces, Classes and Traits
- ProductDownloadRepository
- Interface ProductDownloadRepository
Table of Contents
- $deleter : ProductDownloadDeleter
- $eventDispatcher : EventDispatcherInterface
- $inserter : ProductDownloadInserter
- $mapper : ProductDownloadMapper
- $permitters : array<string|int, ProductDownloadOperationPermitter>
- $reader : ProductDownloadReader
- $updater : ProductDownloadUpdater
- __construct() : mixed
- ProductDownloadRepository constructor.
- createMultipleProductDownloads() : ProductOptionIds
- createProductDownload() : ProductOptionId
- deleteAllProductDownloadsByProductId() : void
- deleteProductDownloads() : void
- dispatchEntityEvents() : void
- dispatchEvent() : void
- filterProductDownloads() : ProductDownloads
- getProductDownloadById() : ProductDownload
- getProductDownloadsByProductId() : ProductDownloads
- getProductDownloadsTotalCount() : int
- registerOperationPermitter() : void
- storeProductDownloads() : void
- setEventDispatcher() : void
Properties
$deleter
private
ProductDownloadDeleter
$deleter
$eventDispatcher
private
EventDispatcherInterface
$eventDispatcher
$inserter
private
ProductDownloadInserter
$inserter
$mapper
private
ProductDownloadMapper
$mapper
$permitters
private
array<string|int, ProductDownloadOperationPermitter>
$permitters
= []
$reader
private
ProductDownloadReader
$reader
$updater
private
ProductDownloadUpdater
$updater
Methods
__construct()
ProductDownloadRepository constructor.
public
__construct(ProductDownloadMapper $mapper, ProductDownloadReader $reader, ProductDownloadDeleter $deleter, ProductDownloadInserter $inserter, ProductDownloadUpdater $updater, EventDispatcherInterface $dispatcher) : mixed
Parameters
- $mapper : ProductDownloadMapper
- $reader : ProductDownloadReader
- $deleter : ProductDownloadDeleter
- $inserter : ProductDownloadInserter
- $updater : ProductDownloadUpdater
- $dispatcher : EventDispatcherInterface
Return values
mixed —createMultipleProductDownloads()
public
createMultipleProductDownloads(array<string|int, mixed> ...$creationArguments) : ProductOptionIds
Parameters
- $creationArguments : array<string|int, mixed>
Tags
Return values
ProductOptionIds —createProductDownload()
public
createProductDownload(ProductId $productId, OptionAndOptionValueId $optionAndOptionValueId, ImageListId $imageListId, OptionValueCustomization $optionValueCustomization, ProductDownloadStock $productDownloadStock, int $sortOrder) : ProductOptionId
Parameters
- $productId : ProductId
- $optionAndOptionValueId : OptionAndOptionValueId
- $imageListId : ImageListId
- $optionValueCustomization : OptionValueCustomization
- $productDownloadStock : ProductDownloadStock
- $sortOrder : int
Tags
Return values
ProductOptionId —deleteAllProductDownloadsByProductId()
public
deleteAllProductDownloadsByProductId(ProductId $productId) : void
Parameters
- $productId : ProductId
Tags
Return values
void —deleteProductDownloads()
public
deleteProductDownloads(ProductOptionId ...$ids) : void
Parameters
- $ids : ProductOptionId
Tags
Return values
void —dispatchEntityEvents()
public
dispatchEntityEvents(EventRaisingEntity $entity) : void
Parameters
- $entity : EventRaisingEntity
Tags
Return values
void —dispatchEvent()
public
dispatchEvent(object $event) : void
Parameters
- $event : object
Tags
Return values
void —filterProductDownloads()
public
filterProductDownloads(ProductId $productId, Filters $filters, Sorting $sorting, Pagination $pagination) : ProductDownloads
Parameters
- $productId : ProductId
- $filters : Filters
- $sorting : Sorting
- $pagination : Pagination
Tags
Return values
ProductDownloads —getProductDownloadById()
public
getProductDownloadById(ProductOptionId $productOptionId) : ProductDownload
Parameters
- $productOptionId : ProductOptionId
Tags
Return values
ProductDownload —getProductDownloadsByProductId()
public
getProductDownloadsByProductId(ProductId $productId) : ProductDownloads
Parameters
- $productId : ProductId
Tags
Return values
ProductDownloads —getProductDownloadsTotalCount()
public
getProductDownloadsTotalCount(ProductId $productId, Filters $filters) : int
Parameters
Tags
Return values
int —registerOperationPermitter()
public
registerOperationPermitter(ProductDownloadOperationPermitter $permitter) : void
Parameters
- $permitter : ProductDownloadOperationPermitter
Tags
Return values
void —storeProductDownloads()
public
storeProductDownloads(ProductDownload ...$productDownloads) : void
Parameters
- $productDownloads : ProductDownload
Tags
Return values
void —setEventDispatcher()
protected
setEventDispatcher(EventDispatcherInterface $eventDispatcher) : void
Parameters
- $eventDispatcher : EventDispatcherInterface