LocalProductServiceDecorator
LocalProductServiceDecorator.php
:
25
Abstract
Implements
LocalProductServiceInterface
Properties¶
$innerService
¶
LocalProductServiceDecorator.php
:
27
|
|
|
Methods¶
__construct()
¶
LocalProductServiceDecorator.php
:
29
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $innerService | LocalProductServiceInterface | - | - |
createProduct()
¶
LocalProductServiceDecorator.php
:
34
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | ProductCreateStruct | - | - |
Return values
createProductVariants()
¶
LocalProductServiceDecorator.php
:
42
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $product | ProductInterface | - | - |
| $createStructs | iterable<string|int, ProductVariantCreateStruct> | - | - |
deleteProduct()
¶
LocalProductServiceDecorator.php
:
71
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $product | ProductInterface | - | - |
deleteProductTranslation()
¶
LocalProductServiceDecorator.php
:
81
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $product | ProductInterface | - | - |
| $language | Language | - | - |
deleteProductVariantsByBaseProduct()
¶
LocalProductServiceDecorator.php
:
76
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $baseProduct | ProductInterface | - | - |
Return values
array<string|int, string>
findProducts()
¶
LocalProductServiceDecorator.php
:
101
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $query | ProductQuery | - | - |
| $languageSettings | LanguageSettings|null | null | - |
Return values
findProductVariants()
¶
LocalProductServiceDecorator.php
:
111
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $product | ProductInterface | - | - |
| $query | ProductVariantQuery|null | null | - |
Return values
getDistinctProductVariantsAttributesValues()
¶
LocalProductServiceDecorator.php
:
118
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $product | ProductInterface | - | - |
Return values
array<string, array<int, AttributeInterface>>
getProduct()
¶
LocalProductServiceDecorator.php
:
86
Loads product with given code.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $code | string | - | - |
| $settings | LanguageSettings|null | null | - |
Return values
getProductFromContent()
¶
LocalProductServiceDecorator.php
:
91
Returns product associated with given Content.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $content | Content | - | - |
Return values
getProductVariant()
¶
LocalProductServiceDecorator.php
:
106
Loads product variant with given code.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $code | string | - | - |
| $settings | LanguageSettings|null | null | - |
Return values
isProduct()
¶
LocalProductServiceDecorator.php
:
96
Checks if Content is a product.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $content | Content | - | - |
Return values
bool
newProductCreateStruct()
¶
LocalProductServiceDecorator.php
:
47
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $productType | ProductTypeInterface | - | - |
| $mainLanguageCode | string | - | - |
Return values
newProductUpdateStruct()
¶
LocalProductServiceDecorator.php
:
54
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $product | ProductInterface | - | - |
Return values
updateProduct()
¶
LocalProductServiceDecorator.php
:
59
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $updateStruct | ProductUpdateStruct | - | - |
Return values
updateProductVariant()
¶
LocalProductServiceDecorator.php
:
64
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $productVariant | ProductVariantInterface | - | - |
| $updateStruct | ProductVariantUpdateStruct | - | - |