$isRoot = false;
} $sequences->
add($sequence);
if ($falseCase === null
) { continue;
} $buildFalsePath =
$this->faker->
boolean();
$action =
$this->
buildActionSequence($buildFalsePath ?
$sequence :
$falseCase,
$buildFalsePath);
$sequences->
add($action);
$sequence =
$buildFalsePath ?
$falseCase :
$sequence;
} // Add a action if the last sequence tree is an if condition
if ($sequences->
last() &&
$sequences->
last()->
getRuleId() !== null
) { $action =
$this->
buildActionSequence($sequences->
last(),
$this->faker->
boolean());
$sequences->
add($action);
} }