Completed
Push — feature/eco-3656/eco-3658-enab... ( ab05e4...16d9cc )
by
unknown
06:10
created

ComputopToComputopApiClientBridge   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A sendPayPalExpressPrepareRequest() 0 3 1
A sendPayPalExpressCompleteRequest() 0 3 1
1
<?php
2
3
namespace SprykerEco\Yves\Computop\Dependency\Client;
4
5
use Generated\Shared\Transfer\QuoteTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfer\QuoteTransfer 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...
6
use SprykerEco\Client\ComputopApi\ComputopApiClient;
0 ignored issues
show
Bug introduced by
The type SprykerEco\Client\ComputopApi\ComputopApiClient 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...
7
8
class ComputopToComputopApiClientBridge implements ComputopToComputopApiClientInterface
9
{
10
    /**
11
     * @var ComputopApiClient
12
     */
13
    protected $computopApiClient;
14
15
    /**
16
     * ComputopToComputopApiClientBridge constructor.
17
     */
18
    public function __construct($computopApiClient)
19
    {
20
        $this->computopApiClient = $computopApiClient;
21
    }
22
23
    public function sendPayPalExpressPrepareRequest(QuoteTransfer $quoteTransfer): QuoteTransfer
24
    {
25
        return $this->computopApiClient->sendPayPalExpressPrepareRequest($quoteTransfer);
26
    }
27
28
29
    public function sendPayPalExpressCompleteRequest(QuoteTransfer $quoteTransfer): QuoteTransfer
30
    {
31
        return $this->computopApiClient->sendPayPalExpressCompleteRequest($quoteTransfer);
32
    }
33
}
34