private static function checkOptions($options)
    {
        if (!isset($options['retries']) || !is_int($options['retries']) || $options['retries'] <= 0) {
            throw new \InvalidArgumentException(
                'retry: the options.retries must be an integer with a positive value'
            );
        }
        if (!isset($options['interval']) || !is_float($options['interval']) || $options['interval'] <= 0.0) {
            throw new \InvalidArgumentException(
                'retry: the options.interval must be a float with a positive value'
            );
        }
    }
private static function checkOptions($options)
    {
        if (!isset($options['retries']) || !is_int($options['retries']) || $options['retries'] <= 0) {
            throw new \InvalidArgumentException(
                'retry: the options.retries must be an integer with a positive value'
            );
        }
        if (!isset($options['interval']) || !is_float($options['interval']) || $options['interval'] <= 0.0) {
            throw new \InvalidArgumentException(
                'retry: the options.interval must be a float with a positive value'
            );
        }
    }
private static function checkOptions ( $ options ) { if ( ! isset ( $ options [ 'retries' ] ) || ! is_int ( $ options [ 'retries' ] ) || $ options [ 'retries' ] <= 0 ) { throw new \ InvalidArgumentException ( 'retry: the options.retries must be an integer with a positive value' ) ; } if ( ! isset ( $ options [ 'interval' ] ) || ! is_float ( $ options [ 'interval' ] ) || $ options [ 'interval' ] <= 0.0 ) { throw new \ InvalidArgumentException ( 'retry: the options.interval must be a float with a positive value' ) ; } }
Check the options, throw an `InvalidArgumentException` on invalid format value.

@param $options
@throws \InvalidArgumentException
Check the options throw an InvalidArgumentException on invalid format value .