Conditions | 5 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function processData(DataItemInterface $item, ExecutionContext $context): ItemInterface |
||
30 | { |
||
31 | $data = $item->getData(); |
||
32 | |||
33 | $resultData = []; |
||
34 | $result = $this->ruleApplier->apply($data, $resultData, $this->rule); |
||
35 | |||
36 | if (($this->negate && $result == false) || (!$this->negate && $result == true)) { |
||
|
|||
37 | return $item; |
||
38 | } |
||
39 | |||
40 | return new ChainBreakItem(); |
||
41 | } |
||
42 | } |