Passed
Push — feature/eco-2952-psd2-notify-u... ( 5ae75a...df1386 )
by Aleksey
03:58
created

getCalculationFacade()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
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\Zed\Computop\Communication;
9
10
use Spryker\Zed\Kernel\Communication\AbstractCommunicationFactory;
11
use SprykerEco\Zed\Computop\ComputopDependencyProvider;
12
use SprykerEco\Zed\Computop\Dependency\Facade\ComputopToRefundFacadeInterface;
13
14
/**
15
 * @method \SprykerEco\Zed\Computop\ComputopConfig getConfig()
16
 * @method \SprykerEco\Zed\Computop\Persistence\ComputopQueryContainerInterface getQueryContainer()
17
 * @method \SprykerEco\Zed\Computop\Business\ComputopFacadeInterface getFacade()
18
 * @method \SprykerEco\Zed\Computop\Persistence\ComputopEntityManagerInterface getEntityManager()
19
 */
20
class ComputopCommunicationFactory extends AbstractCommunicationFactory
21
{
22
    /**
23
     * @return \SprykerEco\Zed\Computop\Dependency\Facade\ComputopToSalesFacadeInterface
24
     */
25
    public function getSalesFacade()
26
    {
27
        return $this->getProvidedDependency(
28
            ComputopDependencyProvider::FACADE_SALES
29
        );
30
    }
31
32
    /**
33
     * @return \SprykerEco\Zed\Computop\Dependency\Facade\ComputopToCalculationFacadeInterface
34
     */
35
    public function getCalculationFacade()
36
    {
37
        return $this->getProvidedDependency(
38
            ComputopDependencyProvider::FACADE_CALCULATION
39
        );
40
    }
41
42
    /**
43
     * @return \SprykerEco\Zed\Computop\Dependency\Facade\ComputopToRefundFacadeInterface
44
     */
45
    public function getRefundFacade(): ComputopToRefundFacadeInterface
46
    {
47
        return $this->getProvidedDependency(ComputopDependencyProvider::FACADE_REFUND);
48
    }
49
}
50