This commit is contained in:
James Cole
2024-01-02 22:28:58 +01:00
parent c3068d10bf
commit 98b95ab891
8 changed files with 75 additions and 4 deletions

View File

@@ -47,6 +47,11 @@ trait ValidatesAmountsTrait
return -1 === bccomp($value, '0') || 0 === bccomp($value, '0');
}
final protected function zeroOrMore(string $value): bool
{
return 1 === bccomp($value, '0') || 0 === bccomp($value, '0');
}
final protected function moreThanLots(string $value): bool
{
return 1 === bccomp($value, self::BIG_AMOUNT) || 0 === bccomp($value, self::BIG_AMOUNT);