Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
35 | 2 | public function pass(DataBagInterface $dataBag): DataBagInterface |
|
36 | { |
||
37 | 2 | if (!($this->callback)($dataBag)) { |
|
38 | 2 | throw new FlowTerminationException( |
|
39 | 2 | sprintf( |
|
40 | 2 | 'Flow was terminated by Filter (%s) for data %s.', |
|
41 | 2 | $this->getIdentifier(), |
|
42 | 2 | json_encode($dataBag) |
|
43 | ) |
||
44 | ); |
||
45 | } |
||
46 | |||
47 | 2 | return $dataBag; |
|
48 | } |
||
49 | } |
||
50 |