protected static function paramsValidation($value, int $scale = null)
    {
        if (null === $value) {
            throw new \InvalidArgumentException('$value must be a non null number');
        }

        if (null !== $scale && $scale < 0) {
            throw new \InvalidArgumentException('$scale must be a positive integer');
        }
    }
protected static function paramsValidation($value, int $scale = null)
    {
        if (null === $value) {
            throw new \InvalidArgumentException('$value must be a non null number');
        }

        if (null !== $scale && $scale < 0) {
            throw new \InvalidArgumentException('$scale must be a positive integer');
        }
    }
protected static function paramsValidation ( $ value , int $ scale = null ) { if ( null === $ value ) { throw new \ InvalidArgumentException ( '$value must be a non null number' ) ; } if ( null !== $ scale && $ scale < 0 ) { throw new \ InvalidArgumentException ( '$scale must be a positive integer' ) ; } }
Validates basic constructor's arguments
@param  mixed    $value
@param  null|int  $scale
Validates basic constructor s arguments