PunchoutCatalogsPersistenceFactory   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 75
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 12
c 2
b 0
f 0
dl 0
loc 75
rs 10
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getPunchoutCatalogConnectionSetupPropelQuery() 0 3 1
A createPunchoutCatalogsConnectionMapper() 0 5 1
A getPunchoutCatalogTransactionPropelQuery() 0 3 1
A createPunchoutCatalogsConnectionCartMapper() 0 3 1
A createPunchoutCatalogsConnectionSetupMapper() 0 3 1
A getCompanyBusinessUnitPropelQuery() 0 3 1
A getCompanyUserPropelQuery() 0 3 1
A getPunchoutCatalogConnectionCartPropelQuery() 0 3 1
A getPunchoutCatalogConnectionPropelQuery() 0 3 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\PunchoutCatalogs\Persistence;
9
10
use Orm\Zed\CompanyBusinessUnit\Persistence\SpyCompanyBusinessUnitQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\CompanyBusinessU...ompanyBusinessUnitQuery 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\CompanyUser\Persistence\SpyCompanyUserQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\CompanyUser\Pers...nce\SpyCompanyUserQuery 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 Orm\Zed\PunchoutCatalog\Persistence\PgwPunchoutCatalogConnectionCartQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\PunchoutCatalog\...alogConnectionCartQuery 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 Orm\Zed\PunchoutCatalog\Persistence\PgwPunchoutCatalogConnectionQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\PunchoutCatalog\...tCatalogConnectionQuery 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
use Orm\Zed\PunchoutCatalog\Persistence\PgwPunchoutCatalogConnectionSetupQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\PunchoutCatalog\...logConnectionSetupQuery 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...
15
use Orm\Zed\PunchoutCatalog\Persistence\PgwPunchoutCatalogTransactionQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\PunchoutCatalog\...CatalogTransactionQuery 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...
16
use Spryker\Zed\Kernel\Persistence\AbstractPersistenceFactory;
17
use SprykerEco\Zed\PunchoutCatalogs\Persistence\Propel\Mapper\PunchoutCatalogsConnectionCartMapper;
18
use SprykerEco\Zed\PunchoutCatalogs\Persistence\Propel\Mapper\PunchoutCatalogsConnectionMapper;
19
use SprykerEco\Zed\PunchoutCatalogs\Persistence\Propel\Mapper\PunchoutCatalogsConnectionSetupMapper;
20
use SprykerEco\Zed\PunchoutCatalogs\PunchoutCatalogsDependencyProvider;
21
22
/**
23
 * @method \SprykerEco\Zed\PunchoutCatalogs\Persistence\PunchoutCatalogsEntityManagerInterface getEntityManager()
24
 * @method \SprykerEco\Zed\PunchoutCatalogs\Persistence\PunchoutCatalogsRepositoryInterface getRepository()
25
 * @method \SprykerEco\Zed\PunchoutCatalogs\PunchoutCatalogsConfig getConfig()
26
 */
27
class PunchoutCatalogsPersistenceFactory extends AbstractPersistenceFactory
28
{
29
    /**
30
     * @return \Orm\Zed\PunchoutCatalog\Persistence\PgwPunchoutCatalogConnectionQuery
31
     */
32
    public function getPunchoutCatalogConnectionPropelQuery(): PgwPunchoutCatalogConnectionQuery
33
    {
34
        return $this->getProvidedDependency(PunchoutCatalogsDependencyProvider::PROPEL_QUERY_PUNCHOUT_CATALOG_CONNECTION);
35
    }
36
37
    /**
38
     * @return \Orm\Zed\PunchoutCatalog\Persistence\PgwPunchoutCatalogTransactionQuery
39
     */
40
    public function getPunchoutCatalogTransactionPropelQuery(): PgwPunchoutCatalogTransactionQuery
41
    {
42
        return $this->getProvidedDependency(PunchoutCatalogsDependencyProvider::PROPEL_QUERY_PUNCHOUT_CATALOG_TRANSACTION);
43
    }
44
45
    /**
46
     * @return \SprykerEco\Zed\PunchoutCatalogs\Persistence\Propel\Mapper\PunchoutCatalogsConnectionMapper
47
     */
48
    public function createPunchoutCatalogsConnectionMapper(): PunchoutCatalogsConnectionMapper
49
    {
50
        return new PunchoutCatalogsConnectionMapper(
51
            $this->createPunchoutCatalogsConnectionSetupMapper(),
52
            $this->createPunchoutCatalogsConnectionCartMapper()
53
        );
54
    }
55
56
    /**
57
     * @return \SprykerEco\Zed\PunchoutCatalogs\Persistence\Propel\Mapper\PunchoutCatalogsConnectionSetupMapper
58
     */
59
    public function createPunchoutCatalogsConnectionSetupMapper(): PunchoutCatalogsConnectionSetupMapper
60
    {
61
        return new PunchoutCatalogsConnectionSetupMapper();
62
    }
63
64
    /**
65
     * @return \SprykerEco\Zed\PunchoutCatalogs\Persistence\Propel\Mapper\PunchoutCatalogsConnectionCartMapper
66
     */
67
    public function createPunchoutCatalogsConnectionCartMapper(): PunchoutCatalogsConnectionCartMapper
68
    {
69
        return new PunchoutCatalogsConnectionCartMapper();
70
    }
71
72
    /**
73
     * @return \Orm\Zed\PunchoutCatalog\Persistence\PgwPunchoutCatalogConnectionSetupQuery
74
     */
75
    public function getPunchoutCatalogConnectionSetupPropelQuery(): PgwPunchoutCatalogConnectionSetupQuery
76
    {
77
        return $this->getProvidedDependency(PunchoutCatalogsDependencyProvider::PROPEL_QUERY_PUNCHOUT_CATALOG_CONNECTION_SETUP);
78
    }
79
80
    /**
81
     * @return \Orm\Zed\PunchoutCatalog\Persistence\PgwPunchoutCatalogConnectionCartQuery
82
     */
83
    public function getPunchoutCatalogConnectionCartPropelQuery(): PgwPunchoutCatalogConnectionCartQuery
84
    {
85
        return $this->getProvidedDependency(PunchoutCatalogsDependencyProvider::PROPEL_QUERY_PUNCHOUT_CATALOG_CONNECTION_CART);
86
    }
87
88
    /**
89
     * @return \Orm\Zed\CompanyBusinessUnit\Persistence\SpyCompanyBusinessUnitQuery
90
     */
91
    public function getCompanyBusinessUnitPropelQuery(): SpyCompanyBusinessUnitQuery
92
    {
93
        return $this->getProvidedDependency(PunchoutCatalogsDependencyProvider::PROPEL_QUERY_COMPANY_BUSINESS_UNIT);
94
    }
95
96
    /**
97
     * @return \Orm\Zed\CompanyUser\Persistence\SpyCompanyUserQuery
98
     */
99
    public function getCompanyUserPropelQuery(): SpyCompanyUserQuery
100
    {
101
        return $this->getProvidedDependency(PunchoutCatalogsDependencyProvider::PROPEL_QUERY_COMPANY_USER);
102
    }
103
}
104