MinuboToOmsFacadeBridge   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getStateFlags() 0 3 1
A __construct() 0 3 1
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\Minubo\Dependency\Facade;
9
10
class MinuboToOmsFacadeBridge implements MinuboToOmsFacadeInterface
11
{
12
    /**
13
     * @var \Spryker\Zed\Oms\Business\OmsFacadeInterface
14
     */
15
    protected $omsFacade;
16
17
    /**
18
     * @param \Spryker\Zed\Oms\Business\OmsFacadeInterface $omsFacade
19
     */
20
    public function __construct($omsFacade)
21
    {
22
        $this->omsFacade = $omsFacade;
23
    }
24
25
    /**
26
     * @param string $processName
27
     * @param string $stateName
28
     *
29
     * @return array<string>
30
     */
31
    public function getStateFlags(string $processName, string $stateName): array
32
    {
33
        return $this->omsFacade->getStateFlags($processName, $stateName);
0 ignored issues
show
Deprecated Code introduced by
The function Spryker\Zed\Oms\Business...erface::getStateFlags() has been deprecated: Will be removed without replacement. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

33
        return /** @scrutinizer ignore-deprecated */ $this->omsFacade->getStateFlags($processName, $stateName);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
34
    }
35
}
36