Passed
Pull Request — master (#4)
by Andrey
11:07 queued 03:32
created

AmazonpayToQuoteBridge::setQuote()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Apache OSL-2
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\Amazonpay\Dependency\Client;
9
10
use Generated\Shared\Transfer\QuoteTransfer;
11
12
class AmazonpayToQuoteBridge implements AmazonpayToQuoteInterface
13
{
14
15
    /**
16
     * @var \Spryker\Client\Quote\QuoteClientInterface
17
     */
18
    protected $quoteClient;
19
20
    /**
21
     * @param \Spryker\Client\Quote\QuoteClientInterface $quoteClient
22
     */
23
    public function __construct($quoteClient)
24
    {
25
        $this->quoteClient = $quoteClient;
26
    }
27
28
    /**
29
     * @return \Generated\Shared\Transfer\QuoteTransfer
30
     */
31
    public function getQuote()
32
    {
33
        return $this->quoteClient->getQuote();
34
    }
35
36
    /**
37
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
38
     *
39
     * @return static
40
     */
41
    public function setQuote(QuoteTransfer $quoteTransfer)
42
    {
43
        $this->quoteClient->setQuote($quoteTransfer);
44
45
        return $this;
46
    }
47
48
    /**
49
     * @return void
50
     */
51
    public function clearQuote()
52
    {
53
        $this->quoteClient->clearQuote();
54
    }
55
56
}
57