phpDocumentor

ProductVariantsRepository extends AbstractEventDispatchingRepository implements ProductVariantsRepository

Class ProductVariantsRepository

Interfaces, Classes and Traits

ProductVariantsRepository
Interface ProductVariantsRepository

Table of Contents

$deleter  : ProductVariantsDeleter
$eventDispatcher  : EventDispatcherInterface
$inserter  : ProductVariantsInserter
$mapper  : ProductVariantsMapper
$permitters  : array<string|int, ProductVariantOperationPermitter>
$reader  : ProductVariantsReader
$updater  : ProductVariantsUpdater
__construct()  : mixed
ProductVariantsRepository constructor.
createMultipleProductVariants()  : ProductVariantIds
createProductVariant()  : ProductVariantId
deleteAllProductVariantsByProductId()  : void
deleteProductVariants()  : void
dispatchEntityEvents()  : void
dispatchEvent()  : void
filterProductVariants()  : ProductVariants
getProductVariantById()  : ProductVariant
getProductVariantsByProductId()  : ProductVariants
getProductVariantsTotalCount()  : int
registerOperationPermitter()  : void
storeProductVariants()  : void
unlinkOptionFromProduct()  : void
validateThatOptionValuesBelongToOption()  : void
setEventDispatcher()  : void

Properties

Methods

__construct()

ProductVariantsRepository constructor.

public __construct(ProductVariantsReader $reader, ProductVariantsDeleter $deleter, ProductVariantsInserter $inserter, ProductVariantsUpdater $updater, ProductVariantsMapper $mapper, EventDispatcherInterface $eventDispatcher) : mixed
Parameters
$reader : ProductVariantsReader
$deleter : ProductVariantsDeleter
$inserter : ProductVariantsInserter
$updater : ProductVariantsUpdater
$mapper : ProductVariantsMapper
$eventDispatcher : EventDispatcherInterface
Return values
mixed

createProductVariant()

public createProductVariant(ProductId $productId, OptionAndOptionValueIds $combination, ImageListId $imageListId, ProductCustomization $productCustomization, ProductIdentificationNumbers $productIdentificationNumbers, ProductVariantStock $stock, int $sortOrder) : ProductVariantId
Parameters
$productId : ProductId
$combination : OptionAndOptionValueIds
$imageListId : ImageListId
$productCustomization : ProductCustomization
$productIdentificationNumbers : ProductIdentificationNumbers
$stock : ProductVariantStock
$sortOrder : int
Tags
inheritDoc
Return values
ProductVariantId

validateThatOptionValuesBelongToOption()

public validateThatOptionValuesBelongToOption(array<string|int, mixed> $optionAndOptionValueIds) : void
Parameters
$optionAndOptionValueIds : array<string|int, mixed>
Tags
inheritDoc
Return values
void

setEventDispatcher()

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

Search results