AfterPayPersistenceFactory   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 40
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A createSalesOrderQuery() 0 3 1
A createPaymentAfterPayOrderItemQuery() 0 3 1
A createPaymentAfterPayQuery() 0 3 1
A createPaymentAfterPayTransactionLogQuery() 0 3 1
A createPaymentAfterPayAuthorizationQuery() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Zed\AfterPay\Persistence;
9
10
use Orm\Zed\AfterPay\Persistence\SpyPaymentAfterPayAuthorizationQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\AfterPay\Persist...erPayAuthorizationQuery 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\AfterPay\Persistence\SpyPaymentAfterPayOrderItemQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\AfterPay\Persist...tAfterPayOrderItemQuery 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\AfterPay\Persistence\SpyPaymentAfterPayQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\AfterPay\Persist...SpyPaymentAfterPayQuery 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\AfterPay\Persistence\SpyPaymentAfterPayTransactionLogQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\AfterPay\Persist...rPayTransactionLogQuery 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\Sales\Persistence\SpySalesOrderQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Sales\Persistence\SpySalesOrderQuery 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 Spryker\Zed\Kernel\Persistence\AbstractPersistenceFactory;
16
17
/**
18
 * @method \SprykerEco\Zed\AfterPay\AfterPayConfig getConfig()
19
 * @method \SprykerEco\Zed\AfterPay\Persistence\AfterPayQueryContainerInterface getQueryContainer()
20
 * @method \SprykerEco\Zed\AfterPay\Persistence\AfterPayEntityManagerInterface getEntityManager()
21
 */
22
class AfterPayPersistenceFactory extends AbstractPersistenceFactory
23
{
24
    /**
25
     * @return \Orm\Zed\AfterPay\Persistence\SpyPaymentAfterPayQuery
26
     */
27
    public function createPaymentAfterPayQuery(): SpyPaymentAfterPayQuery
28
    {
29
        return SpyPaymentAfterPayQuery::create();
30
    }
31
32
    /**
33
     * @return \Orm\Zed\AfterPay\Persistence\SpyPaymentAfterPayOrderItemQuery
34
     */
35
    public function createPaymentAfterPayOrderItemQuery(): SpyPaymentAfterPayOrderItemQuery
36
    {
37
        return SpyPaymentAfterPayOrderItemQuery::create();
38
    }
39
40
    /**
41
     * @return \Orm\Zed\AfterPay\Persistence\SpyPaymentAfterPayTransactionLogQuery
42
     */
43
    public function createPaymentAfterPayTransactionLogQuery(): SpyPaymentAfterPayTransactionLogQuery
44
    {
45
        return SpyPaymentAfterPayTransactionLogQuery::create();
46
    }
47
48
    /**
49
     * @return \Orm\Zed\AfterPay\Persistence\SpyPaymentAfterPayAuthorizationQuery
50
     */
51
    public function createPaymentAfterPayAuthorizationQuery(): SpyPaymentAfterPayAuthorizationQuery
52
    {
53
        return SpyPaymentAfterPayAuthorizationQuery::create();
54
    }
55
56
    /**
57
     * @return \Orm\Zed\Sales\Persistence\SpySalesOrderQuery
58
     */
59
    public function createSalesOrderQuery(): SpySalesOrderQuery
60
    {
61
        return SpySalesOrderQuery::create();
62
    }
63
}
64