Passed
Push — feature/eco-3656/eco-3658-enab... ( ee0b63...39446b )
by
unknown
04:19
created

ComputopFactory::getShipmentClient()   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
dl 0
loc 3
rs 10
c 0
b 0
f 0
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 SprykerEco\Client\Computop\Zed\ComputopStub;
12
13
/**
14
 * @method \SprykerEco\Client\Computop\ComputopConfig getConfig()
15
 */
16
class ComputopFactory extends AbstractFactory
17
{
18
    /**
19
     * @return \SprykerEco\Client\Computop\Zed\ComputopStubInterface
20
     */
21
    public function createZedStub()
22
    {
23
        return new ComputopStub(
24
            $this->getZedRequestClient(),
25
            $this->getConfig()
26
        );
27
    }
28
29
    /**
30
     * @return \Spryker\Client\ZedRequest\ZedRequestClientInterface
31
     */
32
    protected function getZedRequestClient()
33
    {
34
        return $this->getProvidedDependency(ComputopDependencyProvider::CLIENT_ZED_REQUEST);
35
    }
36
37
    /**
38
     * @return \Spryker\Client\Shipment\ShipmentClientInterface
39
     */
40
    public function getShipmentClient(): \Spryker\Client\Shipment\ShipmentClientInterface
41
    {
42
        return $this->getProvidedDependency(ComputopDependencyProvider::CLIENT_SHIPMENT);
43
    }
44
45
}
46