ProductDownloadMapper
in package
Uses
ProductDownloadFloatConverter
Class ProductOptionMapper
Table of Contents
- $factory : ProductDownloadFactory
- __construct() : mixed
- ProductOptionMapper constructor.
- mapImageListId() : ImageListId
- mapOptionAndOptionValueId() : OptionAndOptionValueId
- mapOptionValueCustomization() : OptionValueCustomization
- mapProductDownload() : ProductDownload
- mapProductDownloads() : ProductDownloads
- mapProductDownloadStock() : ProductDownloadStock
- mapProductId() : ProductId
- mapProductOptionId() : ProductOptionId
- mapProductOptionIds() : ProductOptionIds
- convertFloatToPositiveFloatAndPrefix() : array<string|int, mixed>
- convertPositiveFloatAndPrefixToFloat() : float
Properties
$factory
private
ProductDownloadFactory
$factory
Methods
__construct()
ProductOptionMapper constructor.
public
__construct(ProductDownloadFactory $factory) : mixed
Parameters
- $factory : ProductDownloadFactory
Return values
mixed —mapImageListId()
public
mapImageListId(int|null $imageListId) : ImageListId
Parameters
- $imageListId : int|null
Return values
ImageListId —mapOptionAndOptionValueId()
public
mapOptionAndOptionValueId(int $optionId, int $optionValueId) : OptionAndOptionValueId
Parameters
- $optionId : int
- $optionValueId : int
Return values
OptionAndOptionValueId —mapOptionValueCustomization()
public
mapOptionValueCustomization(string $modelNumber, float $weight, float $price) : OptionValueCustomization
Parameters
- $modelNumber : string
- $weight : float
- $price : float
Return values
OptionValueCustomization —mapProductDownload()
public
mapProductDownload(array<string|int, mixed> $data) : ProductDownload
Parameters
- $data : array<string|int, mixed>
Return values
ProductDownload —mapProductDownloads()
public
mapProductDownloads(array<string|int, mixed> $productDownloads) : ProductDownloads
Parameters
- $productDownloads : array<string|int, mixed>
Return values
ProductDownloads —mapProductDownloadStock()
public
mapProductDownloadStock(float $stock, string $stockType) : ProductDownloadStock
Parameters
- $stock : float
- $stockType : string
Return values
ProductDownloadStock —mapProductId()
public
mapProductId(int $productId) : ProductId
Parameters
- $productId : int
Return values
ProductId —mapProductOptionId()
public
mapProductOptionId(int $productOptionId) : ProductOptionId
Parameters
- $productOptionId : int
Return values
ProductOptionId —mapProductOptionIds()
public
mapProductOptionIds(array<string|int, mixed> $productOptionIds) : ProductOptionIds
Parameters
- $productOptionIds : array<string|int, mixed>
Return values
ProductOptionIds —convertFloatToPositiveFloatAndPrefix()
protected
convertFloatToPositiveFloatAndPrefix(float $value) : array<string|int, mixed>
Parameters
- $value : float
Return values
array<string|int, mixed> —convertPositiveFloatAndPrefixToFloat()
protected
convertPositiveFloatAndPrefixToFloat(string $prefix, float $value) : float
Parameters
- $prefix : string
- $value : float