if (!
empty($ids->
getIds())) { return;
} $pool =
[ [ 'rule'
=> (new DaysSinceFirstLoginRule())->
assign(['daysPassed' => 0
]),
'name' => 'New customer',
],
[ 'rule'
=> (new DateRangeRule())->
assign(['fromDate' =>
new \
DateTime(), 'toDate'
=> (new \
DateTime())->
modify('+2 day'
)]),
'name' => 'Next two days',
],
[ 'rule'
=> (new GoodsPriceRule())->
assign(['amount' => 5000, 'operator' => GoodsPriceRule::OPERATOR_GTE
]),
'name' => 'Cart >= 5000',
],
[ 'rule'
=> (new CustomerGroupRule())->
assign(['customerGroupIds' =>
[TestDefaults::FALLBACK_CUSTOMER_GROUP
]]),
'name' => 'Default group',
],
[