Completed
Push — master ( c8e10c...47e8bc )
by
unknown
21s queued 16s
created

MerchantSwitcherWidgetToMerchantSwitcherClientBridge   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
dl 0
loc 23
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A switchMerchantInQuote() 0 3 1
1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Spryker Marketplace License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerShop\Yves\MerchantSwitcherWidget\Dependency\Client;
9
10
use Generated\Shared\Transfer\MerchantSwitchRequestTransfer;
11
use Generated\Shared\Transfer\MerchantSwitchResponseTransfer;
12
13
class MerchantSwitcherWidgetToMerchantSwitcherClientBridge implements MerchantSwitcherWidgetToMerchantSwitcherClientInterface
14
{
15
    /**
16
     * @var \Spryker\Client\MerchantSwitcher\MerchantSwitcherClientInterface
17
     */
18
    protected $merchantSwitcherClient;
19
20
    /**
21
     * @param \Spryker\Client\MerchantSwitcher\MerchantSwitcherClientInterface $merchantSwitcherClient
22
     */
23
    public function __construct($merchantSwitcherClient)
24
    {
25
        $this->merchantSwitcherClient = $merchantSwitcherClient;
26
    }
27
28
    /**
29
     * @param \Generated\Shared\Transfer\MerchantSwitchRequestTransfer $merchantSwitchRequestTransfer
30
     *
31
     * @return \Generated\Shared\Transfer\MerchantSwitchResponseTransfer
32
     */
33
    public function switchMerchantInQuote(MerchantSwitchRequestTransfer $merchantSwitchRequestTransfer): MerchantSwitchResponseTransfer
34
    {
35
        return $this->merchantSwitcherClient->switchMerchantInQuote($merchantSwitchRequestTransfer);
36
    }
37
}
38