$filter =
$this->filter;
if ($filter !== null
) { $context =
$scope->
getSalesChannelContext();
$goods =
$goods->
filter(static function DLineItem
$lineItem) use ($filter,
$context) { $scope =
new LineItemScope($lineItem,
$context);
return $filter->
match($scope);
});
} return RuleComparison::
numeric($goods->
getTotalQuantity(),
$this->count,
$this->operator
);
} public function getConstraints(): array
{ return [ 'count' => RuleConstraints::
int(),
'operator' => RuleConstraints::
numericOperators(false
),
];
}}