return true;
} } return false;
} public function getConstraints(): array
{ return [ 'operator' => RuleConstraints::
numericOperators(false
),
'stock' => RuleConstraints::
int(),
];
} public function getConfig(): RuleConfig
{ return (new RuleConfig()) ->
operatorSet(RuleConfig::OPERATOR_SET_NUMBER
) ->
intField('stock'
);
} /**
* @throws UnsupportedOperatorException|UnsupportedValueException
*/