ProductDownloadWriteService
in package
implements
ProductDownloadWriteService
Class ProductDownloadWriteService
Interfaces, Classes and Traits
- ProductDownloadWriteService
- Interface ProductDownloadWriteService
Table of Contents
- $factory : ProductDownloadFactory
- $repository : ProductDownloadRepository
- __construct() : mixed
- ProductDownloadWriteService constructor.
- createMultipleProductDownloads() : ProductOptionIds
- createProductDownload() : ProductOptionId
- deleteAllProductDownloadsByProductId() : void
- deleteProductDownloads() : void
- storeProductDownloads() : void
Properties
$factory
private
ProductDownloadFactory
$factory
$repository
private
ProductDownloadRepository
$repository
Methods
__construct()
ProductDownloadWriteService constructor.
public
__construct(ProductDownloadRepository $repository, ProductDownloadFactory $factory) : mixed
Parameters
- $repository : ProductDownloadRepository
- $factory : ProductDownloadFactory
Return values
mixed —createMultipleProductDownloads()
public
createMultipleProductDownloads(array<string|int, mixed> ...$creationArguments) : ProductOptionIds
Parameters
- $creationArguments : array<string|int, mixed>
Tags
Return values
ProductOptionIds —createProductDownload()
public
createProductDownload(int $productId, OptionAndOptionValueId $optionAndOptionValueId, ImageListId $imageListId, OptionValueCustomization $optionValueCustomization, ProductDownloadStock $productDownloadStock, int $sortOrder) : ProductOptionId
Parameters
- $productId : int
- $optionAndOptionValueId : OptionAndOptionValueId
- $imageListId : ImageListId
- $optionValueCustomization : OptionValueCustomization
- $productDownloadStock : ProductDownloadStock
- $sortOrder : int
Tags
Return values
ProductOptionId —deleteAllProductDownloadsByProductId()
public
deleteAllProductDownloadsByProductId(int $productId) : void
Parameters
- $productId : int
Tags
Return values
void —deleteProductDownloads()
public
deleteProductDownloads(int ...$ids) : void
Parameters
- $ids : int
Tags
Return values
void —storeProductDownloads()
public
storeProductDownloads(ProductDownload ...$productDownloads) : void
Parameters
- $productDownloads : ProductDownload