@@ 183-186 (lines=4) @@ | ||
180 | */ |
|
181 | protected function populateTransientMap(WorkflowEntryInterface $entry, TransientVarsInterface $transientVars, $registersStorage, $actionId = null, $currentSteps, PropertySetInterface $ps) |
|
182 | { |
|
183 | if (!is_array($currentSteps) && !$currentSteps instanceof Traversable) { |
|
184 | $errMsg = 'CurrentSteps должен быть массивом, либо реализовывать интерфейс Traversable'; |
|
185 | throw new InvalidArgumentException($errMsg); |
|
186 | } |
|
187 | ||
188 | if ($registersStorage instanceof Traversable) { |
|
189 | $registers = []; |
|
@@ 630-633 (lines=4) @@ | ||
627 | */ |
|
628 | protected function completeEntry(ActionDescriptor $action = null, $id, $currentSteps, $state) |
|
629 | { |
|
630 | if (!($currentSteps instanceof Traversable || is_array($currentSteps))) { |
|
631 | $errMsg = 'CurrentSteps должен быть массивом, либо реализовывать интерфейс Traversable'; |
|
632 | throw new InvalidArgumentException($errMsg); |
|
633 | } |
|
634 | ||
635 | ||
636 | $this->getPersistence()->setEntryState($id, $state); |