Passed
Push — feature/eco-3656/eco-3658-enab... ( 522204...dfb610 )
by
unknown
04:02
created

ComputopFactory::createComputopQuoteDefaultShipmentExpander()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Client\Computop;
9
10
use Spryker\Client\Kernel\AbstractFactory;
11
use Spryker\Client\ZedRequest\ZedRequestClientInterface;
12
use SprykerEco\Client\Computop\Zed\ComputopStub;
13
use SprykerEco\Client\Computop\Zed\ComputopStubInterface;
14
15
/**
16
 * @method \SprykerEco\Client\Computop\ComputopConfig getConfig()
17
 */
18
class ComputopFactory extends AbstractFactory
19
{
20
    /**
21
     * @return \SprykerEco\Client\Computop\Zed\ComputopStubInterface
22
     */
23
    public function createZedStub(): ComputopStubInterface
24
    {
25
        return new ComputopStub(
26
            $this->getZedRequestClient(),
27
            $this->getConfig()
28
        );
29
    }
30
31
    /**
32
     * @return \Spryker\Client\ZedRequest\ZedRequestClientInterface
33
     */
34
    public function getZedRequestClient(): ZedRequestClientInterface
35
    {
36
        return $this->getProvidedDependency(ComputopDependencyProvider::CLIENT_ZED_REQUEST);
37
    }
38
}
39