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

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 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