| Total Complexity | 2 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class ObtainProfileInformationAdapter implements CallAdapterInterface |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var \PayWithAmazon\ClientInterface |
||
| 19 | */ |
||
| 20 | protected $client; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var \SprykerEco\Zed\Amazonpay\Business\Api\Converter\ArrayConverterInterface |
||
| 24 | */ |
||
| 25 | protected $converter; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param \PayWithAmazon\ClientInterface $client |
||
| 29 | * @param \SprykerEco\Zed\Amazonpay\Business\Api\Converter\ArrayConverterInterface $converter |
||
| 30 | */ |
||
| 31 | public function __construct( |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param \Generated\Shared\Transfer\AmazonpayCallTransfer $amazonpayCallTransfer |
||
| 41 | * |
||
| 42 | * @return \Generated\Shared\Transfer\CustomerTransfer |
||
| 43 | */ |
||
| 44 | public function call(AmazonpayCallTransfer $amazonpayCallTransfer) |
||
| 56 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: