Disque\Command\Argument\OptionChecker::checkOptionsInt PHP Method

checkOptionsInt() protected method

Checks an array so that their keys are ints
protected checkOptionsInt ( array $options, array $keys )
$options array Options
$keys array Keys to check
    protected function checkOptionsInt(array $options, array $keys)
    {
        foreach ($keys as $intOption) {
            if (isset($options[$intOption]) && !is_int($options[$intOption])) {
                throw new InvalidOptionException($this, $options);
            }
        }
    }