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

MerchantSwitcherWidgetToQuoteClientBridge   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getQuote() 0 3 1
A __construct() 0 3 1
A setQuote() 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\QuoteTransfer;
11
12
class MerchantSwitcherWidgetToQuoteClientBridge implements MerchantSwitcherWidgetToQuoteClientInterface
13
{
14
    /**
15
     * @var \Spryker\Client\Quote\QuoteClientInterface
16
     */
17
    protected $quoteClient;
18
19
    /**
20
     * @param \Spryker\Client\Quote\QuoteClientInterface $quoteClient
21
     */
22
    public function __construct($quoteClient)
23
    {
24
        $this->quoteClient = $quoteClient;
25
    }
26
27
    /**
28
     * @return \Generated\Shared\Transfer\QuoteTransfer
29
     */
30
    public function getQuote()
31
    {
32
        return $this->quoteClient->getQuote();
33
    }
34
35
    /**
36
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
37
     *
38
     * @return void
39
     */
40
    public function setQuote(QuoteTransfer $quoteTransfer)
41
    {
42
        $this->quoteClient->setQuote($quoteTransfer);
43
    }
44
}
45