CodeExplorer buildRandomSequence example
$isRoot = true;
for ($s = 0;
$s <
$sequenceCount; ++
$s) { $parent =
$sequence;
$falseCase = null;
if ($parent->
getRuleId()) { $generateFalseCase =
$this->faker->
boolean();
if ($generateFalseCase) { $falseCase =
$this->
buildRandomSequence($parent, false
);
$sequences->
add($falseCase);
$parent->
setPosition($parent->
getPosition() + 1
);
} } $sequence =
$this->
buildRandomSequence($parent);
if ($isRoot) { $sequence->
assign([