phpDocumentor

ProductOptionRepository extends AbstractEventDispatchingRepository implements ProductOptionRepository

Class ProductOptionRepository

Interfaces, Classes and Traits

ProductOptionRepository
Interface ProductOptionRepository

Table of Contents

$deleter  : ProductOptionDeleter
$eventDispatcher  : EventDispatcherInterface
$inserter  : ProductOptionInserter
$mapper  : ProductOptionMapper
$permitters  : array<string|int, ProductOptionOperationPermitter>
$reader  : ProductOptionReader
$updater  : ProductOptionUpdater
__construct()  : mixed
ProductOptionRepository constructor.
createMultipleProductOptions()  : ProductOptionIds
createProductOption()  : ProductOptionId
deleteAllProductOptionsByProductId()  : void
deleteProductOptions()  : void
dispatchEntityEvents()  : void
dispatchEvent()  : void
filterProductOptions()  : ProductOptions
getProductOptionById()  : ProductOption
getProductOptionsByProductId()  : ProductOptions
getProductOptionsTotalCount()  : int
registerOperationPermitter()  : void
storeProductOptions()  : void
setEventDispatcher()  : void

Properties

Methods

__construct()

ProductOptionRepository constructor.

public __construct(ProductOptionMapper $mapper, ProductOptionReader $reader, ProductOptionDeleter $deleter, ProductOptionInserter $inserter, ProductOptionUpdater $updater, EventDispatcherInterface $dispatcher) : mixed
Parameters
$mapper : ProductOptionMapper
$reader : ProductOptionReader
$deleter : ProductOptionDeleter
$inserter : ProductOptionInserter
$updater : ProductOptionUpdater
$dispatcher : EventDispatcherInterface
Return values
mixed

createProductOption()

public createProductOption(ProductId $productId, OptionAndOptionValueId $optionAndOptionValueId, ImageListId $imageListId, OptionValueCustomization $optionValueCustomization, ProductOptionStock $productOptionStock, int $sortOrder) : ProductOptionId
Parameters
$productId : ProductId
$optionAndOptionValueId : OptionAndOptionValueId
$imageListId : ImageListId
$optionValueCustomization : OptionValueCustomization
$productOptionStock : ProductOptionStock
$sortOrder : int
Tags
inheritDoc
Return values
ProductOptionId

setEventDispatcher()

protected setEventDispatcher(EventDispatcherInterface $eventDispatcher) : void
Parameters
$eventDispatcher : EventDispatcherInterface
Return values
void

Search results