FirstDataCommunicationFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSalesFacade() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Zed\FirstData\Communication;
9
10
use Spryker\Zed\Kernel\Communication\AbstractCommunicationFactory;
11
use SprykerEco\Zed\FirstData\Dependency\Facade\FirstDataToSalesFacadeInterface;
12
use SprykerEco\Zed\FirstData\FirstDataDependencyProvider;
13
14
/**
15
 * @method \SprykerEco\Zed\FirstData\Persistence\FirstDataRepositoryInterface getRepository()
16
 * @method \SprykerEco\Zed\FirstData\Persistence\FirstDataEntityManagerInterface getEntityManager()
17
 * @method \SprykerEco\Zed\FirstData\FirstDataConfig getConfig()
18
 * @method \SprykerEco\Zed\FirstData\Business\FirstDataFacadeInterface getFacade()
19
 */
20
class FirstDataCommunicationFactory extends AbstractCommunicationFactory
21
{
22
    /**
23
     * @return \SprykerEco\Zed\FirstData\Dependency\Facade\FirstDataToSalesFacadeInterface
24
     */
25
    public function getSalesFacade(): FirstDataToSalesFacadeInterface
26
    {
27
        return $this->getProvidedDependency(FirstDataDependencyProvider::FACADE_SALES);
28
    }
29
}
30