ProductVariantsMapper
in package
Class ProductVariantsMapper
Table of Contents
- $factory : ProductVariantFactory
- __construct() : mixed
- ProductVariantsMapper constructor.
- mapProductId() : ProductId
- mapProductVariant() : ProductVariant
- mapProductVariantId() : ProductVariantId
- mapProductVariantIds() : ProductVariantIds
- mapProductVariants() : ProductVariants
- mapCombinationsFromString() : OptionAndOptionValueIds
Properties
$factory
private
ProductVariantFactory
$factory
Methods
__construct()
ProductVariantsMapper constructor.
public
__construct(ProductVariantFactory $factory) : mixed
Parameters
- $factory : ProductVariantFactory
Return values
mixed —mapProductId()
public
mapProductId(int $id) : ProductId
Parameters
- $id : int
Return values
ProductId —mapProductVariant()
public
mapProductVariant(array<string|int, mixed> $data) : ProductVariant
Parameters
- $data : array<string|int, mixed>
Tags
Return values
ProductVariant —mapProductVariantId()
public
mapProductVariantId(int $id) : ProductVariantId
Parameters
- $id : int
Return values
ProductVariantId —mapProductVariantIds()
public
mapProductVariantIds(ProductVariantId ...$ids) : ProductVariantIds
Parameters
- $ids : ProductVariantId
Return values
ProductVariantIds —mapProductVariants()
public
mapProductVariants(array<string|int, mixed> $productVariants) : ProductVariants
Parameters
- $productVariants : array<string|int, mixed>
Return values
ProductVariants —mapCombinationsFromString()
private
mapCombinationsFromString(string $combinationString) : OptionAndOptionValueIds
Parameters
- $combinationString : string