if (!
$builder instanceof LineItemGroupBuilder
) { return false;
} $results =
$builder->
findGroupPackages( [$groupDefinition],
$scope->
getCart(),
$scope->
getSalesChannelContext() );
return $results->
hasFoundItems();
} public function getConstraints(): array
{ return [ 'groupId' => RuleConstraints::
string(),
'packagerKey' => RuleConstraints::
string(),
'value' => RuleConstraints::
float(),
'sorterKey' => RuleConstraints::
string(),
'rules' =>
[new NotBlank(),
new Type('container'
)],
];
}