Completed
Push — master ( ffc46f...f233a4 )
by
unknown
20s queued 13s
created

setOrderCustomReference()   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
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 2
1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerShop\Yves\OrderCustomReferenceWidget\Dependency\Client;
9
10
use Generated\Shared\Transfer\QuoteResponseTransfer;
11
use Generated\Shared\Transfer\QuoteTransfer;
12
13
class OrderCustomReferenceWidgetToOrderCustomReferenceClientBridge implements OrderCustomReferenceWidgetToOrderCustomReferenceClientInterface
14
{
15
    /**
16
     * @var \Spryker\Client\OrderCustomReference\OrderCustomReferenceClientInterface
17
     */
18
    protected $orderCustomReferenceClient;
19
20
    /**
21
     * @param \Spryker\Client\OrderCustomReference\OrderCustomReferenceClientInterface $orderCustomReferenceClient
22
     */
23
    public function __construct($orderCustomReferenceClient)
24
    {
25
        $this->orderCustomReferenceClient = $orderCustomReferenceClient;
26
    }
27
28
    /**
29
     * @param string $orderCustomReference
30
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
31
     *
32
     * @return \Generated\Shared\Transfer\QuoteResponseTransfer
33
     */
34
    public function setOrderCustomReference(string $orderCustomReference, QuoteTransfer $quoteTransfer): QuoteResponseTransfer
35
    {
36
        return $this->orderCustomReferenceClient->setOrderCustomReference($orderCustomReference, $quoteTransfer);
37
    }
38
}
39