public function getConstraints(): array
{ $constraints =
[ 'operator' => RuleConstraints::
uuidOperators(),
];
if ($this->operator === self::OPERATOR_EMPTY
) { return $constraints;
} $constraints['manufacturerIds'
] = RuleConstraints::
uuids();
return $constraints;
} public function getConfig(): RuleConfig
{ return (new RuleConfig()) ->
operatorSet(RuleConfig::OPERATOR_SET_STRING, true, true
) ->
entitySelectField('manufacturerIds', ProductManufacturerDefinition::ENTITY_NAME, true
);
}