Passed
Push — feature/paypal-express ( 8eac93...3cde97 )
by Volodymyr
05:19
created

createPaymentBraintreeOrderItemQuery()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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\Braintree\Persistence;
9
10
use Orm\Zed\Braintree\Persistence\SpyPaymentBraintreeOrderItemQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Braintree\Persis...BraintreeOrderItemQuery 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\Braintree\Persistence\SpyPaymentBraintreeQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Braintree\Persis...pyPaymentBraintreeQuery 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\Braintree\Persistence\SpyPaymentBraintreeTransactionOrderItem;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Braintree\Persis...reeTransactionOrderItem 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\Braintree\Persistence\SpyPaymentBraintreeTransactionOrderItemQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Braintree\Persis...ansactionOrderItemQuery 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\Braintree\Persistence\SpyPaymentBraintreeTransactionRequestLogQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Braintree\Persis...nsactionRequestLogQuery 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\Braintree\Persistence\SpyPaymentBraintreeTransactionStatusLogQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Braintree\Persis...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\Braintree\Persistence\Mapper\BraintreePersistenceMapper;
18
use SprykerEco\Zed\Braintree\Persistence\Mapper\BraintreePersistenceMapperInterface;
19
20
/**
21
 * @method \SprykerEco\Zed\Braintree\BraintreeConfig getConfig()
22
 * @method \SprykerEco\Zed\Braintree\Persistence\BraintreeQueryContainerInterface getQueryContainer()
23
 * @method \SprykerEco\Zed\Braintree\Persistence\BraintreeEntityManagerInterface getEntityManager()
24
 * @method \SprykerEco\Zed\Braintree\Persistence\BraintreeRepositoryInterface getRepository()
25
 */
26
class BraintreePersistenceFactory extends AbstractPersistenceFactory
27
{
28
    /**
29
     * @return \SprykerEco\Zed\Braintree\Persistence\Mapper\BraintreePersistenceMapperInterface
30
     */
31
    public function createBraintreePersistenceMapper(): BraintreePersistenceMapperInterface
32
    {
33
        return new BraintreePersistenceMapper();
34
    }
35
36
    /**
37
     * @return \Orm\Zed\Braintree\Persistence\SpyPaymentBraintreeQuery
38
     */
39
    public function createPaymentBraintreeQuery()
40
    {
41
        return SpyPaymentBraintreeQuery::create();
42
    }
43
44
    /**
45
     * @return \Orm\Zed\Braintree\Persistence\SpyPaymentBraintreeTransactionStatusLogQuery
46
     */
47
    public function createPaymentBraintreeTransactionStatusLogQuery()
48
    {
49
        return SpyPaymentBraintreeTransactionStatusLogQuery::create();
50
    }
51
52
    /**
53
     * @return \Orm\Zed\Braintree\Persistence\SpyPaymentBraintreeTransactionRequestLogQuery
54
     */
55
    public function createPaymentBraintreeTransactionRequestLogQuery()
56
    {
57
        return SpyPaymentBraintreeTransactionRequestLogQuery::create();
58
    }
59
60
    /**
61
     * @return SpyPaymentBraintreeOrderItemQuery
62
     */
63
    public function createPaymentBraintreeOrderItemQuery(): SpyPaymentBraintreeOrderItemQuery
64
    {
65
        return SpyPaymentBraintreeOrderItemQuery::create();
66
    }
67
}
68