phpDocumentor

ProductVariantsRepository

Interface ProductVariantsRepository

Table of Contents

createMultipleProductVariants()  : ProductVariantIds
createProductVariant()  : ProductVariantId
deleteAllProductVariantsByProductId()  : void
deleteProductVariants()  : void
filterProductVariants()  : ProductVariants
getProductVariantById()  : ProductVariant
getProductVariantsByProductId()  : ProductVariants
getProductVariantsTotalCount()  : int
registerOperationPermitter()  : void
storeProductVariants()  : void
unlinkOptionFromProduct()  : void
validateThatOptionValuesBelongToOption()  : void

Methods

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
throws
ProductVariantCombinationAlreadyExists
throws
InsertionOfProductVariantsFailed
throws
OperationHasNotBeenPermittedException
Return values
ProductVariantId

Search results