@@ 260-263 (lines=4) @@ | ||
257 | */ |
|
258 | protected function validateIterateData($data) |
|
259 | { |
|
260 | if (!is_array($data) && !$data instanceof Traversable) { |
|
261 | $errMsg = 'Data not iterate'; |
|
262 | throw new InvalidArgumentException($errMsg); |
|
263 | } |
|
264 | } |
|
265 | ||
266 |
@@ 43-46 (lines=4) @@ | ||
40 | */ |
|
41 | public function populateTransientMap(WorkflowEntryInterface $entry, TransientVarsInterface $transientVars, $registersStorage, $actionId = null, $currentSteps, PropertySetInterface $ps) |
|
42 | { |
|
43 | if (!is_array($currentSteps) && !$currentSteps instanceof Traversable) { |
|
44 | $errMsg = 'Current steps not valid'; |
|
45 | throw new InvalidArgumentException($errMsg); |
|
46 | } |
|
47 | ||
48 | $workflowManager = $this->getWorkflowManager(); |
|
49 | $context = $workflowManager->getContext(); |
@@ 34-37 (lines=4) @@ | ||
31 | */ |
|
32 | public function completeEntry(ActionDescriptor $action = null, $id, $currentSteps, $state) |
|
33 | { |
|
34 | if (!is_array($currentSteps) && !$currentSteps instanceof Traversable) { |
|
35 | $errMsg = 'Invalid currentSteps'; |
|
36 | throw new InvalidArgumentException($errMsg); |
|
37 | } |
|
38 | ||
39 | $workflowManager = $this->getWorkflowManager(); |
|
40 | $context = $workflowManager->getContext(); |