CodeExplorer buildIfSequence example
if (!
empty($payload)) { $this->
write($payload,
$context);
} $this->io->
progressFinish();
} private function buildRandomSequence(FlowSequenceEntity
$parent, bool
$trueCase = true
): FlowSequenceEntity
{ if ($this->faker->
boolean()) { return $this->
buildIfSequence($parent,
$trueCase);
} return $this->
buildActionSequence($parent,
$trueCase);
} private function buildIfSequence(FlowSequenceEntity
$parent, bool
$trueCase = true
): FlowSequenceEntity
{ $ruleIds =
$this->
getIds('rule'
);
if ($parent->
getActionName() !== null
) { return $this->
buildActionSequence($parent);
}