|
@@ 47-55 (lines=9) @@
|
| 44 |
|
return $targetIndex; |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
protected function insertStepBefore(string $stepName, AbstractStep $stepObject, array $opt) |
| 48 |
|
{ |
| 49 |
|
$targetIndex = $this->findTargetStepIndex($stepName); |
| 50 |
|
$step = [ |
| 51 |
|
'step' => $stepObject, |
| 52 |
|
'opt' => $opt |
| 53 |
|
]; |
| 54 |
|
array_splice($this->stepsQueue, $targetIndex, 0, [$step]); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
protected function insertStepAfter(string $stepName, AbstractStep $stepObject, array $opt) |
| 58 |
|
{ |
|
@@ 57-65 (lines=9) @@
|
| 54 |
|
array_splice($this->stepsQueue, $targetIndex, 0, [$step]); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
protected function insertStepAfter(string $stepName, AbstractStep $stepObject, array $opt) |
| 58 |
|
{ |
| 59 |
|
$targetIndex = $this->findTargetStepIndex($stepName); |
| 60 |
|
$step = [ |
| 61 |
|
'step' => $stepObject, |
| 62 |
|
'opt' => $opt |
| 63 |
|
]; |
| 64 |
|
array_splice($this->stepsQueue, $targetIndex + 1, 0, [$step]); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
protected function replaceStep(string $stepName, AbstractStep $stepObject, array $opt) |
| 68 |
|
{ |
|
@@ 67-75 (lines=9) @@
|
| 64 |
|
array_splice($this->stepsQueue, $targetIndex + 1, 0, [$step]); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
protected function replaceStep(string $stepName, AbstractStep $stepObject, array $opt) |
| 68 |
|
{ |
| 69 |
|
$targetIndex = $this->findTargetStepIndex($stepName); |
| 70 |
|
$step = [ |
| 71 |
|
'step' => $stepObject, |
| 72 |
|
'opt' => $opt |
| 73 |
|
]; |
| 74 |
|
array_splice($this->stepsQueue, $targetIndex, 1, [$step]); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
protected function addStep(AbstractStep $stepObject, array $opt) |
| 78 |
|
{ |