Money\Money::assertNumeric PHP Method

assertNumeric() private static method

Asserts that a value is a valid numeric string
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');
        }
    }