Completed
Push — master ( a6a629...1492ab )
by Oleksandr
10s
created

StateFlagExpanderPlugin::expandData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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\Communication\Plugin\Expander;
9
10
use Spryker\Zed\Kernel\Communication\AbstractPlugin;
11
use SprykerEco\Zed\Minubo\Dependency\Plugin\MinuboDataExpanderInterface;
12
13
/**
14
 * @method \SprykerEco\Zed\Minubo\Communication\MinuboCommunicationFactory getFactory()
15
 * @method \SprykerEco\Zed\Minubo\Business\MinuboFacadeInterface getFacade()
16
 */
17
class StateFlagExpanderPlugin extends AbstractPlugin implements MinuboDataExpanderInterface
18
{
19
    /**
20
     * @param array $data
21
     *
22
     * @return array
23
     */
24
    public function expandData(array $data): array
25
    {
26
        return $this->getFacade()
27
            ->expandOrderItemWithStateFlags($data);
28
    }
29
}
30