getStateMachineFacade()   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\ExampleStateMachine\Communication;
11
12
use Pyz\Zed\ExampleStateMachine\ExampleStateMachineDependencyProvider;
13
use Spryker\Zed\Kernel\Communication\AbstractCommunicationFactory;
14
use Spryker\Zed\StateMachine\Business\StateMachineFacadeInterface;
15
16
/**
17
 * @method \Pyz\Zed\ExampleStateMachine\Persistence\ExampleStateMachineQueryContainerInterface getQueryContainer()
18
 * @method \Pyz\Zed\ExampleStateMachine\Business\ExampleStateMachineFacadeInterface getFacade()
19
 */
20
class ExampleStateMachineCommunicationFactory extends AbstractCommunicationFactory
21
{
22
    public function getStateMachineFacade(): StateMachineFacadeInterface
23
    {
24
        return $this->getProvidedDependency(ExampleStateMachineDependencyProvider::FACADE_STATE_MACHINE);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getProvide...::FACADE_STATE_MACHINE) could return the type callable which is incompatible with the type-hinted return Spryker\Zed\StateMachine...eMachineFacadeInterface. Consider adding an additional type-check to rule them out.
Loading history...
25
    }
26
}
27