StateFlagExpanderPlugin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 3
c 1
b 0
f 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A expandData() 0 4 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
 * @method \SprykerEco\Zed\Minubo\MinuboConfig getConfig()
17
 */
18
class StateFlagExpanderPlugin extends AbstractPlugin implements MinuboDataExpanderInterface
19
{
20
    /**
21
     * {@inheritDoc}
22
     *
23
     * @api
24
     *
25
     * @param array $data
26
     *
27
     * @return array
28
     */
29
    public function expandData(array $data): array
30
    {
31
        return $this->getFacade()
32
            ->expandOrderItemWithStateFlags($data);
33
    }
34
}
35