Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
FlowSequenceEntity example
$sequenceTreeCount
=
random_int
(
1,
$maxSequenceTree
)
;
$sequences
=
new
FlowSequenceCollection
(
)
;
for
(
$t
= 0;
$t
<
$sequenceTreeCount
; ++
$t
)
{
$position
= 1;
$displayGroup
=
$t
+ 1;
$sequenceCount
=
random_int
(
1,
$maxSequencePerTree
)
;
$sequence
=
new
FlowSequenceEntity
(
)
;
$sequence
->
setId
(
Uuid::
randomHex
(
)
)
;
$sequence
->
setDisplayGroup
(
$displayGroup
)
;
$sequence
->
setPosition
(
$position
)
;
$sequence
->
setTrueCase
(
true
)
;
$sequence
->
setFlowId
(
$flow
[
'id'
]
)
;
$sequence
->
assign
(
[
'ruleId' => null,
'actionName' => null,
]
)
;
$isRoot
= true;