MerchantSalesOrderCommunicationFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSalesFacade() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace Pyz\Zed\MerchantSalesOrder\Communication;
11
12
use Pyz\Zed\MerchantSalesOrder\MerchantSalesOrderDependencyProvider;
13
use Spryker\Zed\Kernel\Communication\AbstractCommunicationFactory;
14
use Spryker\Zed\MerchantSalesOrder\Dependency\Facade\MerchantSalesOrderToSalesFacadeInterface;
15
16
/**
17
 * @method \Spryker\Zed\MerchantSalesOrder\Persistence\MerchantSalesOrderEntityManagerInterface getEntityManager()
18
 * @method \Spryker\Zed\MerchantSalesOrder\Business\MerchantSalesOrderFacadeInterface getFacade()
19
 * @method \Spryker\Zed\MerchantSalesOrder\MerchantSalesOrderConfig getConfig()
20
 * @method \Spryker\Zed\MerchantSalesOrder\Persistence\MerchantSalesOrderRepositoryInterface getRepository()
21
 */
22
class MerchantSalesOrderCommunicationFactory extends AbstractCommunicationFactory
23
{
24
    /**
25
     * @return \Spryker\Zed\MerchantSalesOrder\Dependency\Facade\MerchantSalesOrderToSalesFacadeInterface
26
     */
27
    public function getSalesFacade(): MerchantSalesOrderToSalesFacadeInterface
28
    {
29
        return $this->getProvidedDependency(MerchantSalesOrderDependencyProvider::FACADE_SALES);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getProvide...Provider::FACADE_SALES) could return the type callable which is incompatible with the type-hinted return Spryker\Zed\MerchantSale...rToSalesFacadeInterface. Consider adding an additional type-check to rule them out.
Loading history...
30
    }
31
}
32