Passed
Pull Request — master (#14)
by Oleksandr
08:06
created

getCategoryDataFeedQueryContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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
     * @return \Orm\Zed\Category\Persistence\SpyCategoryQuery
39
     */
40
    public function createCategoryQuery()
41
    {
42
        return SpyCategoryQuery::create();
43
    }
44
45
    /**
46
     * @return \Orm\Zed\PriceProduct\Persistence\SpyPriceProductQuery
47
     */
48
    public function createPriceProductQuery()
49
    {
50
        return SpyPriceProductQuery::create();
51
    }
52
}
53