src/Money.php
private function assertOperand($operand)
    {
        if (!is_numeric($operand)) {
            throw new \InvalidArgumentException(sprintf(
                'Operand should be a numeric value, "%s" given.',
                is_object($operand) ? get_class($operand) : gettype($operand)
            ));
        }
    }
private function assertOperand($operand)
    {
        if (!is_numeric($operand)) {
            throw new \InvalidArgumentException(sprintf(
                'Operand should be a numeric value, "%s" given.',
                is_object($operand) ? get_class($operand) : gettype($operand)
            ));
        }
    }
private function assertOperand ( $ operand ) { if ( ! is_numeric ( $ operand ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Operand should be a numeric value, "%s" given.' , is_object ( $ operand ) ? get_class ( $ operand ) : gettype ( $ operand ) ) ) ; } }
Asserts that the operand is integer or float.

@param float|int|string $operand

@throws \InvalidArgumentException If $operand is neither integer nor float
Asserts that the operand is integer or float .