| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function getValidationGroupsForSubject($subject, Workflow $workflow, Transition $transition): array |
||
| 28 | { |
||
| 29 | $groups = []; |
||
| 30 | |||
| 31 | if ($subject instanceof ValidationStateProviderInterface) { |
||
| 32 | foreach ($transition->getTos() as $state) { |
||
| 33 | $groups = array_merge($groups, $subject->getGroupSequenceForState($state, $workflow->getName())); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | return $groups; |
||
| 38 | } |
||
| 40 |