getRecommendations()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
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\Yves\FactFinder\Dependency\Clients;
9
10
use Generated\Shared\Transfer\FactFinderSdkProductCampaignRequestTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...CampaignRequestTransfer 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 Generated\Shared\Transfer\FactFinderSdkRecommendationRequestTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...endationRequestTransfer 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 Generated\Shared\Transfer\FactFinderSdkSearchRequestTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...dkSearchRequestTransfer 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 Generated\Shared\Transfer\FactFinderSdkSuggestRequestTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...kSuggestRequestTransfer 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 Generated\Shared\Transfer\FactFinderSdkTrackingRequestTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...TrackingRequestTransfer 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
16
class FactFinderToFactFinderClientBridge implements FactFinderToFactFinderClientInterface
17
{
18
    /**
19
     * @var \SprykerEco\Client\FactFinderSdk\FactFinderSdkClientInterface
20
     */
21
    protected $factFinderClient;
22
23
    /**
24
     * FactFinderDemoToFactFinderClientBridge constructor.
25
     *
26
     * @param \SprykerEco\Client\FactFinderSdk\FactFinderSdkClientInterface $factFinderClient
27
     */
28
    public function __construct($factFinderClient)
29
    {
30
        $this->factFinderClient = $factFinderClient;
31
    }
32
33
    /**
34
     * @param \Generated\Shared\Transfer\FactFinderSdkSearchRequestTransfer $factFinderSearchRequestTransfer
35
     *
36
     * @return \Generated\Shared\Transfer\FactFinderSdkSearchResponseTransfer
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...kSearchResponseTransfer 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...
37
     */
38
    public function search(FactFinderSdkSearchRequestTransfer $factFinderSearchRequestTransfer)
39
    {
40
        return $this->factFinderClient
41
            ->search($factFinderSearchRequestTransfer);
42
    }
43
44
    /**
45
     * @param \Generated\Shared\Transfer\FactFinderSdkRecommendationRequestTransfer $factFinderRecommendationRequestTransfer
46
     *
47
     * @return \Generated\Shared\Transfer\FactFinderSdkRecommendationResponseTransfer
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...ndationResponseTransfer 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...
48
     */
49
    public function getRecommendations(FactFinderSdkRecommendationRequestTransfer $factFinderRecommendationRequestTransfer)
50
    {
51
        return $this->factFinderClient
52
            ->getRecommendations($factFinderRecommendationRequestTransfer);
53
    }
54
55
    /**
56
     * @param \Generated\Shared\Transfer\FactFinderSdkSuggestRequestTransfer $factFinderSuggestRequestTransfer
57
     *
58
     * @return \Generated\Shared\Transfer\FactFinderSdkSuggestResponseTransfer
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...SuggestResponseTransfer 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...
59
     */
60
    public function getSuggestions(FactFinderSdkSuggestRequestTransfer $factFinderSuggestRequestTransfer)
61
    {
62
        return $this->factFinderClient
63
            ->getSuggestions($factFinderSuggestRequestTransfer);
64
    }
65
66
    /**
67
     * @param \Generated\Shared\Transfer\FactFinderSdkTrackingRequestTransfer $factFinderTrackingRequestTransfer
68
     *
69
     * @return \Generated\Shared\Transfer\FactFinderSdkTrackingResponseTransfer
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...rackingResponseTransfer 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...
70
     */
71
    public function track(FactFinderSdkTrackingRequestTransfer $factFinderTrackingRequestTransfer)
72
    {
73
        return $this->factFinderClient
74
            ->track($factFinderTrackingRequestTransfer);
75
    }
76
77
    /**
78
     * @param \Generated\Shared\Transfer\FactFinderSdkProductCampaignRequestTransfer $factFinderSdkProductCampaignRequestTransfer
79
     *
80
     * @return \Generated\Shared\Transfer\FactFinderSdkProductCampaignResponseTransfer
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...ampaignResponseTransfer 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...
81
     */
82
    public function getProductCampaigns(FactFinderSdkProductCampaignRequestTransfer $factFinderSdkProductCampaignRequestTransfer)
83
    {
84
        return $this->factFinderClient
85
            ->getProductCampaigns($factFinderSdkProductCampaignRequestTransfer);
86
    }
87
88
    /**
89
     * @param \Generated\Shared\Transfer\FactFinderSdkProductCampaignRequestTransfer $factFinderSdkProductCampaignRequestTransfer
90
     *
91
     * @return \Generated\Shared\Transfer\FactFinderSdkProductCampaignResponseTransfer
92
     */
93
    public function getShoppingCartCampaigns(FactFinderSdkProductCampaignRequestTransfer $factFinderSdkProductCampaignRequestTransfer)
94
    {
95
        return $this->factFinderClient
96
            ->getShoppingCartCampaigns($factFinderSdkProductCampaignRequestTransfer);
97
    }
98
}
99