ProductDownloadUpdater
in package
Uses
ProductDownloadFloatConverter
Class ProductOptionUpdater
Table of Contents
- $connection : Connection
- __construct() : mixed
- ProductOptionUpdater constructor.
- storeProductDownloads() : void
- convertFloatToPositiveFloatAndPrefix() : array<string|int, mixed>
- convertPositiveFloatAndPrefixToFloat() : float
- updateProductDownload() : void
- updateProductOptionImageList() : void
Properties
$connection
private
Connection
$connection
Methods
__construct()
ProductOptionUpdater constructor.
public
__construct(Connection $connection) : mixed
Parameters
- $connection : Connection
Return values
mixed —storeProductDownloads()
public
storeProductDownloads(ProductDownload ...$productDownloads) : void
Parameters
- $productDownloads : ProductDownload
Tags
Return values
void —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
Return values
float —updateProductDownload()
private
updateProductDownload(ProductDownload $productDownload) : void
Parameters
- $productDownload : ProductDownload
Return values
void —updateProductOptionImageList()
private
updateProductOptionImageList(ProductDownload $productDownload) : void
Parameters
- $productDownload : ProductDownload