use Shopware\Core\Framework\Log\Package;
use Shopware\Core\Framework\Struct\ArrayStruct;
/**
* @internal not intended for decoration or replacement
*/
#[Package('business-ops')]
class FlowBuilder{ public function build(string
$id, array
$flowSequences): Flow
{ $flowSequences =
$this->
buildHierarchyTree($flowSequences);
$flatBag =
new ArrayStruct();
$sequences =
[];
foreach ($flowSequences as $flowSequence) { if ($flowSequence['sequence_id'
] === null
) { continue;
} $sequences[] =
$this->
createNestedSequence($flowSequence,
[],
$flatBag);
}