OmsCommunicationFactory::getTranslatorFacade()   A
last analyzed

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
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
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\Oms\Communication;
11
12
use Pyz\Zed\Oms\OmsDependencyProvider;
13
use Spryker\Zed\Oms\Communication\OmsCommunicationFactory as SprykerOmsCommunicationFactory;
14
use Spryker\Zed\Translator\Business\TranslatorFacadeInterface;
15
16
/**
17
 * @method \Pyz\Zed\Oms\Business\OmsFacadeInterface getFacade()
18
 * @method \Spryker\Zed\Oms\Persistence\OmsQueryContainerInterface getQueryContainer()
19
 * @method \Spryker\Zed\Oms\Persistence\OmsEntityManagerInterface getEntityManager()
20
 * @method \Pyz\Zed\Oms\OmsConfig getConfig()
21
 * @method \Spryker\Zed\Oms\Persistence\OmsRepositoryInterface getRepository()
22
 */
23
class OmsCommunicationFactory extends SprykerOmsCommunicationFactory
24
{
25
    /**
26
     * @return \Spryker\Zed\Translator\Business\TranslatorFacadeInterface
27
     */
28
    public function getTranslatorFacade(): TranslatorFacadeInterface
29
    {
30
        return $this->getProvidedDependency(OmsDependencyProvider::FACADE_TRANSLATOR);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getProvide...der::FACADE_TRANSLATOR) could return the type callable which is incompatible with the type-hinted return Spryker\Zed\Translator\B...anslatorFacadeInterface. Consider adding an additional type-check to rule them out.
Loading history...
31
    }
32
}
33