Copied!

ProductServiceInterface

ProductServiceInterface.php : 19

Methods

publicfindProducts()

ProductServiceInterface.php : 29
public findProducts(ProductQuery $query[, LanguageSettings|null $languageSettings = null ]) : ProductListInterface

Parameters

Name Type Default value Description
$query ProductQuery - -
$languageSettings LanguageSettings|null null -

Return values

ProductListInterface

publicfindProductVariants()

ProductServiceInterface.php : 39
public findProductVariants(ProductInterface $product[, ProductVariantQuery|null $query = null ]) : ProductVariantListInterface

Parameters

Name Type Default value Description
$product ProductInterface - -
$query ProductVariantQuery|null null -

Return values

ProductVariantListInterface

publicgetProduct()

ProductServiceInterface.php : 27

Loads product with given code.

public getProduct(string $code[, LanguageSettings|null $settings = null ]) : ProductInterface

Parameters

Name Type Default value Description
$code string - -
$settings LanguageSettings|null null -

Return values

ProductInterface

Tags
Throws
UnauthorizedException

if the user is not allowed to read the product

Throws
NotFoundException

if the product with the given code does not exist

publicgetProductVariant()

ProductServiceInterface.php : 37

Loads product variant with given code.

public getProductVariant(string $code[, LanguageSettings|null $settings = null ]) : ProductVariantInterface

Parameters

Name Type Default value Description
$code string - -
$settings LanguageSettings|null null -

Return values

ProductVariantInterface

Tags
Throws
UnauthorizedException

if the user is not allowed to read the product

Throws
NotFoundException

if the product with the given code does not exist