ProductVariantsReadService
in package
implements
ProductVariantsReadService
Interfaces, Classes and Traits
- ProductVariantsReadService
- Interface ProductVariantsReadService
Table of Contents
- $factory : ProductVariantFactory
- $repository : ProductVariantsRepository
- __construct() : mixed
- ProductVariantsReadService constructor.
- getProductVariantById() : ProductVariant
- getProductVariantsByProductId() : ProductVariants
Properties
$factory
private
ProductVariantFactory
$factory
$repository
private
ProductVariantsRepository
$repository
Methods
__construct()
ProductVariantsReadService constructor.
public
__construct(ProductVariantsRepository $repository, ProductVariantFactory $factory) : mixed
Parameters
- $repository : ProductVariantsRepository
- $factory : ProductVariantFactory
Return values
mixed —getProductVariantById()
public
getProductVariantById(int $variantId) : ProductVariant
Parameters
- $variantId : int
Tags
Return values
ProductVariant —getProductVariantsByProductId()
public
getProductVariantsByProductId(int $productId) : ProductVariants
Parameters
- $productId : int