AkeneoPimMiddlewareConnectorQueryContainer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
c 0
b 0
f 0
dl 0
loc 33
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A querySelectSpyTaxSet() 0 7 1
A querySelectLocale() 0 7 1
1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\AkeneoPimMiddlewareConnector\Persistence;
9
10
use Orm\Zed\Locale\Persistence\Map\SpyLocaleTableMap;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Locale\Persistence\Map\SpyLocaleTableMap 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\Tax\Persistence\Map\SpyTaxSetTableMap;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Tax\Persistence\Map\SpyTaxSetTableMap 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 Propel\Runtime\ActiveQuery\ModelCriteria;
0 ignored issues
show
Bug introduced by
The type Propel\Runtime\ActiveQuery\ModelCriteria 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...
13
use Spryker\Zed\Kernel\Persistence\AbstractQueryContainer;
0 ignored issues
show
Bug introduced by
The type Spryker\Zed\Kernel\Persi...\AbstractQueryContainer 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...
14
15
/**
16
 * @method \SprykerEco\Zed\AkeneoPimMiddlewareConnector\Persistence\AkeneoPimMiddlewareConnectorPersistenceFactory getFactory()
17
 */
18
class AkeneoPimMiddlewareConnectorQueryContainer extends AbstractQueryContainer implements AkeneoPimMiddlewareConnectorQueryContainerInterface
19
{
20
    /**
21
     * {@inheritDoc}
22
     *
23
     * @api
24
     *
25
     * @return \Propel\Runtime\ActiveQuery\ModelCriteria
26
     */
27
    public function querySelectSpyTaxSet(): ModelCriteria
28
    {
29
        return $this->getFactory()
30
            ->createSpyTaxSetQuery()
31
            ->select([
32
                SpyTaxSetTableMap::COL_ID_TAX_SET,
33
                SpyTaxSetTableMap::COL_NAME,
34
            ]);
35
    }
36
37
    /**
38
     * {@inheritDoc}
39
     *
40
     * @api
41
     *
42
     * @return \Propel\Runtime\ActiveQuery\ModelCriteria
43
     */
44
    public function querySelectLocale(): ModelCriteria
45
    {
46
        return $this->getFactory()
47
            ->createSpyLocaleQuery()
48
            ->select([
49
                SpyLocaleTableMap::COL_ID_LOCALE,
50
                SpyLocaleTableMap::COL_LOCALE_NAME,
51
            ]);
52
    }
53
}
54