ComputopToOmsFacadeBridge::triggerEvent()   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
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
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\Computop\Dependency\Facade;
9
10
use Propel\Runtime\Collection\ObjectCollection;
11
12
class ComputopToOmsFacadeBridge implements ComputopToOmsFacadeInterface
13
{
14
    /**
15
     * @var \Spryker\Zed\Oms\Business\OmsFacadeInterface
16
     */
17
    protected $omsFacade;
18
19
    /**
20
     * @param \Spryker\Zed\Oms\Business\OmsFacadeInterface $omsFacade
21
     */
22
    public function __construct($omsFacade)
23
    {
24
        $this->omsFacade = $omsFacade;
25
    }
26
27
    /**
28
     * @param string $eventId
29
     * @param \Propel\Runtime\Collection\ObjectCollection $orderItems
30
     * @param array $logContext
31
     * @param array $data
32
     *
33
     * @return array
34
     */
35
    public function triggerEvent($eventId, ObjectCollection $orderItems, array $logContext, array $data = [])
36
    {
37
        return $this->omsFacade->triggerEvent($eventId, $orderItems, $logContext, $data);
38
    }
39
}
40