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

checkOptionsArray() protected method

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