private static assertNumeric ( numeric $value ) | ||
$value | numeric |
private static function assertNumeric($value)
{
if (!is_numeric($value)) {
throw new InvalidArgumentException('Amount must be a valid numeric value');
}
}