SimilarRecordsRequest::request()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 10
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
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\Client\FactFinderSdk\Business\Api\Handler\Request;
9
10
use Generated\Shared\Transfer\FactFinderSdkSimilarRecordsRequestTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...rRecordsRequestTransfer 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 SprykerEco\Client\FactFinderSdk\Business\Api\ApiConstants;
12
13
class SimilarRecordsRequest extends AbstractRequest implements SimilarRecordsRequestInterface
14
{
15
    public const TRANSACTION_TYPE = ApiConstants::TRANSACTION_TYPE_SIMILAR_RECORDS;
16
17
    /**
18
     * @param \Generated\Shared\Transfer\FactFinderSdkSimilarRecordsRequestTransfer $factFinderSimilarRecordsRequestTransfer
19
     *
20
     * @return \Generated\Shared\Transfer\FactFinderSdkSimilarRecordsResponseTransfer
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...RecordsResponseTransfer 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...
21
     */
22
    public function request(FactFinderSdkSimilarRecordsRequestTransfer $factFinderSimilarRecordsRequestTransfer)
23
    {
24
        $similarRecordsAdapter = $this->factFinderConnector->createSimilarRecordsAdapter();
25
26
        // convert to FFSearchResponseTransfer
27
        $responseTransfer = $this->converterFactory
28
            ->createSimilarRecordsResponseConverter($similarRecordsAdapter)
29
            ->convert();
30
31
        return $responseTransfer;
32
    }
33
}
34