SearchHttpDependencyProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 10
dl 0
loc 32
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getSearchConfigExpanderPlugins() 0 4 1
A getSearchConfigBuilderPlugins() 0 4 1
A getFacetConfigTransferBuilders() 0 7 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace Pyz\Client\SearchHttp;
11
12
use Spryker\Client\Catalog\Plugin\ConfigTransferBuilder\CategoryFacetConfigTransferBuilderPlugin;
13
use Spryker\Client\Catalog\Plugin\SearchHttp\CatalogSearchHttpConfigBuilderPlugin;
14
use Spryker\Client\CatalogPriceProductConnector\Plugin\ConfigTransferBuilder\PriceFacetConfigTransferBuilderPlugin;
15
use Spryker\Client\ProductLabelStorage\Plugin\ProductLabelFacetConfigTransferBuilderPlugin;
16
use Spryker\Client\ProductReview\Plugin\RatingFacetConfigTransferBuilderPlugin;
17
use Spryker\Client\ProductSearchConfigStorage\Plugin\Config\ProductSearchConfigExpanderPlugin;
18
use Spryker\Client\SearchHttp\SearchHttpDependencyProvider as SprykerSearchHttpDependencyProvider;
19
20
class SearchHttpDependencyProvider extends SprykerSearchHttpDependencyProvider
21
{
22
    /**
23
     * @return array<\Spryker\Client\Catalog\Dependency\Plugin\FacetConfigTransferBuilderPluginInterface>
24
     */
25
    protected function getFacetConfigTransferBuilders(): array
26
    {
27
        return [
28
            new CategoryFacetConfigTransferBuilderPlugin(),
29
            new PriceFacetConfigTransferBuilderPlugin(),
30
            new RatingFacetConfigTransferBuilderPlugin(),
31
            new ProductLabelFacetConfigTransferBuilderPlugin(),
32
        ];
33
    }
34
35
    /**
36
     * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\SearchConfigBuilderPluginInterface>
37
     */
38
    protected function getSearchConfigBuilderPlugins(): array
39
    {
40
        return [
41
            new CatalogSearchHttpConfigBuilderPlugin(),
42
        ];
43
    }
44
45
    /**
46
     * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\SearchConfigExpanderPluginInterface>
47
     */
48
    protected function getSearchConfigExpanderPlugins(): array
49
    {
50
        return [
51
            new ProductSearchConfigExpanderPlugin(),
52
        ];
53
    }
54
}
55