Passed
Branch feature/ECO-808-scrutinizer (bde35b)
by Andrey
07:45
created

AmazonpayPersistenceFactory   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A createSpySalesOrderItemQuery() 0 3 1
A createPaymentAmazonpayQuery() 0 3 1
A createPaymentAmazonpaySalesOrderItemQuery() 0 3 1
1
<?php
2
3
/**
4
 * Apache OSL-2
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\Amazonpay\Persistence;
9
10
use Orm\Zed\Amazonpay\Persistence\SpyPaymentAmazonpayQuery;
1 ignored issue
show
Bug introduced by
The type Orm\Zed\Amazonpay\Persis...pyPaymentAmazonpayQuery 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\Amazonpay\Persistence\SpyPaymentAmazonpaySalesOrderItemQuery;
1 ignored issue
show
Bug introduced by
The type Orm\Zed\Amazonpay\Persis...npaySalesOrderItemQuery 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\Sales\Persistence\SpySalesOrderItemQuery;
1 ignored issue
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...
13
use Spryker\Zed\Kernel\Persistence\AbstractPersistenceFactory;
14
15
/**
16
 * @method \SprykerEco\Shared\Amazonpay\AmazonpayConfig getConfig()
17
 * @method \SprykerEco\Zed\Amazonpay\Persistence\AmazonpayQueryContainer getQueryContainer()
18
 */
19
class AmazonpayPersistenceFactory extends AbstractPersistenceFactory
20
{
21
22
    /**
23
     * @return \Orm\Zed\Amazonpay\Persistence\SpyPaymentAmazonpayQuery
24
     */
25
    public function createPaymentAmazonpayQuery()
26
    {
27
        return SpyPaymentAmazonpayQuery::create();
28
    }
29
30
    /**
31
     * @return \Orm\Zed\Amazonpay\Persistence\SpyPaymentAmazonpaySalesOrderItemQuery
32
     */
33
    public function createPaymentAmazonpaySalesOrderItemQuery()
34
    {
35
        return SpyPaymentAmazonpaySalesOrderItemQuery::create();
36
    }
37
38
    /**
39
     * @return \Orm\Zed\Sales\Persistence\SpySalesOrderItemQuery
40
     */
41
    public function createSpySalesOrderItemQuery()
42
    {
43
        return SpySalesOrderItemQuery::create();
44
    }
45
46
}
47