Completed
Pull Request — dev (#9)
by Andrey
07:05 queued 03:34
created

SetOrderReferenceDetailsConverter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResponseType() 0 3 1
A setBody() 0 5 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\Business\Api\Converter;
9
10
use Generated\Shared\Transfer\AmazonpayResponseTransfer;
1 ignored issue
show
Bug introduced by
The type Generated\Shared\Transfe...azonpayResponseTransfer 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
12
class SetOrderReferenceDetailsConverter extends AbstractResponseParserConverter
13
{
14
    /**
15
     * @return string
16
     */
17
    protected function getResponseType()
18
    {
19
        return 'SetOrderReferenceDetailsResult';
20
    }
21
22
    /**
23
     * @param \Generated\Shared\Transfer\AmazonpayResponseTransfer $responseTransfer
24
     * @param array $response
25
     *
26
     * @return \Generated\Shared\Transfer\AmazonpayResponseTransfer
27
     */
28
    protected function setBody(AmazonpayResponseTransfer $responseTransfer, array $response)
29
    {
30
        $responseTransfer->setShippingAddress($this->extractShippingAddress($response));
31
32
        return parent::setBody($responseTransfer, $response);
33
    }
34
}
35