protected function checkOperand($operand)
    {
        if (!is_scalar($operand) && !$operand instanceof ExpressionContract) {
            throw new InvalidArgumentException('Condition only acceps scalars and Expression, not ' . Type::of($operand));
        }
        return $operand;
    }
protected function checkOperand($operand)
    {
        if (!is_scalar($operand) && !$operand instanceof ExpressionContract) {
            throw new InvalidArgumentException('Condition only acceps scalars and Expression, not ' . Type::of($operand));
        }
        return $operand;
    }
protected function checkOperand ( $ operand ) { if ( ! is_scalar ( $ operand ) && ! $ operand instanceof ExpressionContract ) { throw new InvalidArgumentException ( 'Condition only acceps scalars and Expression, not ' . Type :: of ( $ operand ) ) ; } return $ operand ; }
Checks the type of the operand

@param mixed $operand

@return mixed
Checks the type of the operand