Passed
Pull Request — master (#88)
by Olha
04:22
created

PayonePersistenceFactory::getServiceUtilEncoding()   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
c 0
b 0
f 0
dl 0
loc 3
rs 10
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\Payone\Persistence;
9
10
use Orm\Zed\Payone\Persistence\SpyPaymentPayoneApiCallLogQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Payone\Persisten...ntPayoneApiCallLogQuery 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\Payone\Persistence\SpyPaymentPayoneApiLogQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Payone\Persisten...aymentPayoneApiLogQuery 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\Payone\Persistence\SpyPaymentPayoneOrderItemQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Payone\Persisten...entPayoneOrderItemQuery 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\Payone\Persistence\SpyPaymentPayoneQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Payone\Persistence\SpyPaymentPayoneQuery 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\Payone\Persistence\SpyPaymentPayoneTransactionStatusLogOrderItemQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Payone\Persisten...StatusLogOrderItemQuery 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\Payone\Persistence\SpyPaymentPayoneTransactionStatusLogQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Payone\Persisten...ansactionStatusLogQuery 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\Payone\Dependency\Service\PayoneToUtilEncodingServiceInterface;
18
use SprykerEco\Zed\Payone\PayoneDependencyProvider;
19
use SprykerEco\Zed\Payone\Persistence\Propel\Mapper\PayonePersistenceMapper;
20
21
/**
22
 * @method \SprykerEco\Zed\Payone\PayoneConfig getConfig()
23
 * @method \SprykerEco\Zed\Payone\Persistence\PayoneQueryContainerInterface getQueryContainer()
24
 * @method \SprykerEco\Zed\Payone\Persistence\PayoneEntityManagerInterface getEntityManager()
25
 * @method \SprykerEco\Zed\Payone\Persistence\PayoneRepositoryInterface getRepository()
26
 */
27
class PayonePersistenceFactory extends AbstractPersistenceFactory
28
{
29
    /**
30
     * @return \Orm\Zed\Payone\Persistence\SpyPaymentPayoneTransactionStatusLogQuery
31
     */
32
    public function createPaymentPayoneTransactionStatusLogQuery(): SpyPaymentPayoneTransactionStatusLogQuery
33
    {
34
        return SpyPaymentPayoneTransactionStatusLogQuery::create();
35
    }
36
37
    /**
38
     * @return \Orm\Zed\Payone\Persistence\SpyPaymentPayoneQuery
39
     */
40
    public function createPaymentPayoneQuery(): SpyPaymentPayoneQuery
41
    {
42
        return SpyPaymentPayoneQuery::create();
43
    }
44
45
    /**
46
     * @return \Orm\Zed\Payone\Persistence\SpyPaymentPayoneApiLogQuery
47
     */
48
    public function createPaymentPayoneApiLogQuery(): SpyPaymentPayoneApiLogQuery
49
    {
50
        return SpyPaymentPayoneApiLogQuery::create();
51
    }
52
53
    /**
54
     * @return \Orm\Zed\Payone\Persistence\SpyPaymentPayoneTransactionStatusLogOrderItemQuery
55
     */
56
    public function createPaymentPayoneTransactionStatusLogOrderItemQuery(): SpyPaymentPayoneTransactionStatusLogOrderItemQuery
57
    {
58
        return SpyPaymentPayoneTransactionStatusLogOrderItemQuery::create();
59
    }
60
61
    /**
62
     * @return \Orm\Zed\Payone\Persistence\SpyPaymentPayoneApiCallLogQuery
63
     */
64
    public function createPaymentPayoneApiCallLogQuery(): SpyPaymentPayoneApiCallLogQuery
65
    {
66
        return SpyPaymentPayoneApiCallLogQuery::create();
67
    }
68
69
    /**
70
     * @return \Orm\Zed\Payone\Persistence\SpyPaymentPayoneOrderItemQuery
71
     */
72
    public function createPaymentPayoneOrderItemQuery(): SpyPaymentPayoneOrderItemQuery
73
    {
74
        return SpyPaymentPayoneOrderItemQuery::create();
75
    }
76
77
    /**
78
     * @return \SprykerEco\Zed\Payone\Persistence\Propel\Mapper\PayonePersistenceMapper
79
     */
80
    public function createPayonePersistenceMapper(): PayonePersistenceMapper
81
    {
82
        return new PayonePersistenceMapper();
83
    }
84
85
    /**
86
     * @return \SprykerEco\Zed\Payone\Dependency\Service\PayoneToUtilEncodingServiceInterface
87
     */
88
    public function getServiceUtilEncoding(): PayoneToUtilEncodingServiceInterface
89
    {
90
        return $this->getProvidedDependency(PayoneDependencyProvider::SERVICE_UTIL_ENCODING);
91
    }
92
}
93