| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function execute(ProcessState $state) |
||
| 32 | { |
||
| 33 | $violations = $this->validator->validate($state->getData(), null, $state->getOptions()['groups']); |
||
| 34 | |||
| 35 | if ($violations->count() > 0) { |
||
| 36 | $state->error('error with object', [ |
||
| 37 | 'errors' => $this->violationToArray($violations), |
||
| 38 | ]); |
||
| 39 | $state->markFail(); |
||
| 40 | |||
| 41 | return; |
||
| 42 | } |
||
| 56 |