FactFinderSdkPersistenceFactory   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 5
c 1
b 0
f 0
dl 0
loc 36
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getProductAbstractDataFeedQueryContainer() 0 3 1
A getCategoryDataFeedQueryContainer() 0 3 1
A createCategoryQuery() 0 3 1
A createPriceProductQuery() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\FactFinderSdk\Persistence;
9
10
use Orm\Zed\Category\Persistence\SpyCategoryQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Category\Persistence\SpyCategoryQuery was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
use Orm\Zed\PriceProduct\Persistence\SpyPriceProductQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\PriceProduct\Per...ce\SpyPriceProductQuery was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
use Spryker\Zed\Kernel\Persistence\AbstractPersistenceFactory;
13
use SprykerEco\Zed\FactFinderSdk\FactFinderSdkDependencyProvider;
14
15
/**
16
 * @method \SprykerEco\Zed\FactFinderSdk\FactFinderSdkConfig getConfig()
17
 * @method \SprykerEco\Zed\FactFinderSdk\Persistence\FactFinderSdkQueryContainerInterface getQueryContainer()
18
 */
19
class FactFinderSdkPersistenceFactory extends AbstractPersistenceFactory
20
{
21
    /**
22
     * @return \SprykerEco\Zed\FactFinderSdk\Dependency\Persistence\FactFinderSdkToProductAbstractDataFeedInterface
23
     */
24
    public function getProductAbstractDataFeedQueryContainer()
25
    {
26
        return $this->getProvidedDependency(FactFinderSdkDependencyProvider::PRODUCT_ABSTRACT_DATA_FEED);
27
    }
28
29
    /**
30
     * @return \SprykerEco\Zed\FactFinderSdk\Dependency\Persistence\FactFinderSdkToCategoryDataFeedInterface
31
     */
32
    public function getCategoryDataFeedQueryContainer()
33
    {
34
        return $this->getProvidedDependency(FactFinderSdkDependencyProvider::CATEGORY_DATA_FEED);
35
    }
36
37
    /**
38
     * @SuppressWarnings(FactoryMethodReturnInterfaceRule)
39
     *
40
     * @return \Orm\Zed\Category\Persistence\SpyCategoryQuery
41
     */
42
    public function createCategoryQuery()
43
    {
44
        return SpyCategoryQuery::create();
45
    }
46
47
    /**
48
     * @SuppressWarnings(FactoryMethodReturnInterfaceRule)
49
     *
50
     * @return \Orm\Zed\PriceProduct\Persistence\SpyPriceProductQuery
51
     */
52
    public function createPriceProductQuery()
53
    {
54
        return SpyPriceProductQuery::create();
55
    }
56
}
57