src/Domain/Value/Money/Money.php
protected function guardOperand($operand): void
    {
        if (!is_int($operand) && !is_float($operand)) {
            $message = sprintf(
                'Operand must be an integer or float; received (%s) %s',
                gettype($operand),
                VarPrinter::toString($operand)
            );
            throw new DomainException($message);
        }
    }
protected function guardOperand($operand): void
    {
        if (!is_int($operand) && !is_float($operand)) {
            $message = sprintf(
                'Operand must be an integer or float; received (%s) %s',
                gettype($operand),
                VarPrinter::toString($operand)
            );
            throw new DomainException($message);
        }
    }
protected function guardOperand ( $ operand ) : void { if ( ! is_int ( $ operand ) && ! is_float ( $ operand ) ) { $ message = sprintf ( 'Operand must be an integer or float; received (%s) %s' , gettype ( $ operand ) , VarPrinter :: toString ( $ operand ) ) ; throw new DomainException ( $ message ) ; } }
Validates monetary operand is an integer or float

@param mixed $operand The operand

@return void

@throws DomainException When operand is not an int or float
Validates monetary operand is an integer or float