ComputopToOmsFacadeBridge   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A triggerEvent() 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\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