return true;
} } return false;
} public function getConstraints(): array
{ $constraints =
[ 'operator' => RuleConstraints::
numericOperators(),
'isNet' => RuleConstraints::
bool(),
];
if ($this->operator === self::OPERATOR_EMPTY
) { return $constraints;
} $constraints['amount'
] = RuleConstraints::
float();
$constraints['isNet'
] = RuleConstraints::
bool(true
);
return $constraints;
}