FactFinderSdkClient::getShoppingCartCampaigns()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
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;
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
use Spryker\Client\Kernel\AbstractClient;
16
17
/**
18
 * @method \SprykerEco\Client\FactFinderSdk\FactFinderSdkFactory getFactory()
19
 */
20
class FactFinderSdkClient extends AbstractClient implements FactFinderSdkClientInterface
21
{
22
    /**
23
     * {@inheritDoc}
24
     *
25
     * @api
26
     *
27
     * @param \Generated\Shared\Transfer\FactFinderSdkSearchRequestTransfer $factFinderSearchRequestTransfer
28
     *
29
     * @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...
30
     */
31
    public function search(FactFinderSdkSearchRequestTransfer $factFinderSearchRequestTransfer)
32
    {
33
        $factFinderSearchResponseTransfer = $this
34
            ->getFactory()
35
            ->createSearchRequest()
36
            ->request($factFinderSearchRequestTransfer);
37
38
        return $factFinderSearchResponseTransfer;
39
    }
40
41
    /**
42
     * {@inheritDoc}
43
     *
44
     * @api
45
     *
46
     * @param \Generated\Shared\Transfer\FactFinderSdkTrackingRequestTransfer $factFinderTrackingRequestTransfer
47
     *
48
     * @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...
49
     */
50
    public function track(FactFinderSdkTrackingRequestTransfer $factFinderTrackingRequestTransfer)
51
    {
52
        $factFinderTrackingResponseTransfer = $this->getFactory()
53
            ->createTrackingRequest()
54
            ->request($factFinderTrackingRequestTransfer);
55
56
        return $factFinderTrackingResponseTransfer;
57
    }
58
59
    /**
60
     * {@inheritDoc}
61
     *
62
     * @api
63
     *
64
     * @param \Generated\Shared\Transfer\FactFinderSdkSuggestRequestTransfer $factFinderSuggestRequestTransfer
65
     *
66
     * @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...
67
     */
68
    public function getSuggestions(FactFinderSdkSuggestRequestTransfer $factFinderSuggestRequestTransfer)
69
    {
70
        $factFinderSuggestResponseTransfer = $this
71
            ->getFactory()
72
            ->createSuggestRequest()
73
            ->request($factFinderSuggestRequestTransfer);
74
75
        return $factFinderSuggestResponseTransfer;
76
    }
77
78
    /**
79
     * {@inheritDoc}
80
     *
81
     * @api
82
     *
83
     * @param \Generated\Shared\Transfer\FactFinderSdkRecommendationRequestTransfer $factFinderRecommendationRequestTransfer
84
     *
85
     * @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...
86
     */
87
    public function getRecommendations(FactFinderSdkRecommendationRequestTransfer $factFinderRecommendationRequestTransfer)
88
    {
89
        $factFinderRecommendationResponseTransfer = $this
90
            ->getFactory()
91
            ->createRecommendationsRequest()
92
            ->request($factFinderRecommendationRequestTransfer);
93
94
        return $factFinderRecommendationResponseTransfer;
95
    }
96
97
    /**
98
     * {@inheritDoc}
99
     *
100
     * @api
101
     *
102
     * @param \Generated\Shared\Transfer\FactFinderSdkProductCampaignRequestTransfer $factFinderSdkProductCampaignRequestTransfer
103
     *
104
     * @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...
105
     */
106
    public function getProductCampaigns(FactFinderSdkProductCampaignRequestTransfer $factFinderSdkProductCampaignRequestTransfer)
107
    {
108
        $factFinderSdkProductCampaignResponseTransfer = $this
109
            ->getFactory()
110
            ->createProductCampaignRequest()
111
            ->request($factFinderSdkProductCampaignRequestTransfer);
112
113
        return $factFinderSdkProductCampaignResponseTransfer;
114
    }
115
116
    /**
117
     * {@inheritDoc}
118
     *
119
     * @api
120
     *
121
     * @param \Generated\Shared\Transfer\FactFinderSdkProductCampaignRequestTransfer $factFinderSdkProductCampaignRequestTransfer
122
     *
123
     * @return \Generated\Shared\Transfer\FactFinderSdkProductCampaignResponseTransfer
124
     */
125
    public function getShoppingCartCampaigns(FactFinderSdkProductCampaignRequestTransfer $factFinderSdkProductCampaignRequestTransfer)
126
    {
127
        $factFinderSdkProductCampaignResponseTransfer = $this
128
            ->getFactory()
129
            ->createShoppingCartCampaignRequest()
130
            ->request($factFinderSdkProductCampaignRequestTransfer);
131
132
        return $factFinderSdkProductCampaignResponseTransfer;
133
    }
134
}
135