MinuboFacade::expandOrderItemWithStateFlags()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 5
rs 10
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\Business;
9
10
use Spryker\Zed\Kernel\Business\AbstractFacade;
11
12
/**
13
 * @method \SprykerEco\Zed\Minubo\Business\MinuboBusinessFactory getFactory()
14
 * @method \SprykerEco\Zed\Minubo\Persistence\MinuboEntityManagerInterface getEntityManager()
15
 * @method \SprykerEco\Zed\Minubo\Persistence\MinuboRepositoryInterface getRepository()
16
 */
17
class MinuboFacade extends AbstractFacade implements MinuboFacadeInterface
18
{
19
    /**
20
     * {@inheritDoc}
21
     *
22
     * @api
23
     *
24
     * @return void
25
     */
26
    public function exportData()
27
    {
28
        $this->getFactory()
29
            ->createDataExporter()
30
            ->exportData();
31
    }
32
33
    /**
34
     * {@inheritDoc}
35
     *
36
     * @api
37
     *
38
     * @return void
39
     */
40
    public function exportOrderData()
41
    {
42
        $this->getFactory()
43
            ->createOrderDataExporter()
44
            ->exportData();
45
    }
46
47
    /**
48
     * {@inheritDoc}
49
     *
50
     * @api
51
     *
52
     * @return void
53
     */
54
    public function exportCustomerData()
55
    {
56
        $this->getFactory()
57
            ->createCustomerDataExporter()
58
            ->exportData();
59
    }
60
61
    /**
62
     * {@inheritDoc}
63
     *
64
     * @api
65
     *
66
     * @param array $data
67
     *
68
     * @return array
69
     */
70
    public function expandOrderItemWithStateFlags(array $data): array
71
    {
72
        return $this->getFactory()
73
            ->createOrderItemStateFlagExpander()
74
            ->expandOrderItemWithStateFlags($data);
75
    }
76
}
77