Passed
Push — feature/eco-3656/eco-3658-enab... ( 202423...b8179e )
by
unknown
06:13
created

createPaymentComputopQuery()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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\Computop\Persistence;
9
10
use Orm\Zed\Computop\Persistence\SpyPaymentComputopNotificationQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Computop\Persist...mputopNotificationQuery 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\Computop\Persistence\SpyPaymentComputopOrderItemQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Computop\Persist...tComputopOrderItemQuery 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\Computop\Persistence\SpyPaymentComputopQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Computop\Persist...SpyPaymentComputopQuery 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\Sales\Persistence\SpySalesOrderItemQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Sales\Persistence\SpySalesOrderItemQuery 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 Spryker\Zed\Kernel\Persistence\AbstractPersistenceFactory;
15
use SprykerEco\Zed\Computop\Persistence\Propel\Mapper\ComputopMapper;
16
17
/**
18
 * @method \SprykerEco\Zed\Computop\ComputopConfig getConfig()
19
 * @method \SprykerEco\Zed\Computop\Persistence\ComputopQueryContainerInterface getQueryContainer()
20
 * @method \SprykerEco\Zed\Computop\Persistence\ComputopEntityManagerInterface getEntityManager()
21
 */
22
class ComputopPersistenceFactory extends AbstractPersistenceFactory
23
{
24
    /**
25
     * @return \Orm\Zed\Computop\Persistence\SpyPaymentComputopQuery
26
     */
27
    public function createPaymentComputopQuery(): SpyPaymentComputopQuery
28
    {
29
        return SpyPaymentComputopQuery::create();
30
    }
31
32
    /**
33
     * @return \Orm\Zed\Computop\Persistence\SpyPaymentComputopOrderItemQuery
34
     */
35
    public function createPaymentComputopOrderItemQuery(): SpyPaymentComputopOrderItemQuery
36
    {
37
        return SpyPaymentComputopOrderItemQuery::create();
38
    }
39
40
    /**
41
     * @return \Orm\Zed\Sales\Persistence\SpySalesOrderItemQuery
42
     */
43
    public function createSpySalesOrderItemQuery(): SpySalesOrderItemQuery
44
    {
45
        return SpySalesOrderItemQuery::create();
46
    }
47
48
    /**
49
     * @return \Orm\Zed\Computop\Persistence\SpyPaymentComputopNotificationQuery
50
     */
51
    public function createPaymentComputopNotificationQuery(): SpyPaymentComputopNotificationQuery
52
    {
53
        return SpyPaymentComputopNotificationQuery::create();
54
    }
55
56
    /**
57
     * @return ComputopMapper
58
     */
59
    public function createComputopEntityMapper(): ComputopMapper
60
    {
61
        return new ComputopMapper();
62
    }
63
}
64