ShoppingCartCampaignRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A prepareProductCampaignAdapter() 0 8 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
class ShoppingCartCampaignRequest extends ProductCampaignRequest
11
{
12
    /**
13
     * @return \FACTFinder\Adapter\ProductCampaign
14
     */
15
    protected function prepareProductCampaignAdapter()
16
    {
17
        $productCampaignAdapter = $this->factFinderConnector
18
            ->createProductCampaignAdapter();
19
20
        $productCampaignAdapter->makeShoppingCartCampaign();
21
22
        return $productCampaignAdapter;
23
    }
24
}
25