OrderedHashMap::offsetExists()

offsetExists($key) {@inheritdoc} Parameters $key

OrderedHashMap::getIterator()

getIterator() {@inheritdoc}

OrderedHashMap::count()

count() {@inheritdoc}

OrderedHashMap

class OrderedHashMap implements ArrayAccess, IteratorAggregate, Countable A hash map which keeps track of deletions and additions. Like in associative arrays, elements can be mapped to integer or string keys. Unlike associative arrays, the map keeps track of the order in which keys were added and removed. This order is reflected during iteration. The map supports concurrent modification during iteration. That means that you can insert and remove elements from within a foreach loop and the it

OptionsResolverInterface deprecated::setRequired()

OptionsResolverInterface setRequired(array $optionNames) Sets required options. If these options are not passed to {@link resolve()} and no default has been set for them, an exception will be thrown. Parameters array $optionNames A list of option names. Return Value OptionsResolverInterface The resolver instance.

OptionsResolverInterface deprecated::setOptional()

OptionsResolverInterface setOptional(array $optionNames) Sets optional options. This method declares valid option names without setting default values for them. If these options are not passed to {@link resolve()} and no default has been set for them, they will be missing in the final options array. This can be helpful if you want to determine whether an option has been set or not because otherwise {@link resolve()} would trigger an exception for unknown options. Parameters ar

OptionsResolverInterface deprecated::setNormalizers()

OptionsResolverInterface setNormalizers(array $normalizers) Sets normalizers that are applied on resolved options. The normalizers should be closures with the following signature: function (Options $options, $value) The second parameter passed to the closure is the value of the option. The closure should return the normalized value. Parameters array $normalizers An array of closures. Return Value OptionsResolverInterface The resolver instance.

OptionsResolverInterface deprecated::setDefaults()

OptionsResolverInterface setDefaults(array $defaultValues) Sets default option values. The options can either be values of any types or closures that evaluate the option value lazily. These closures must have one of the following signatures: function (Options $options) function (Options $options, $value) The second parameter passed to the closure is the previously set default value, in case you are overwriting an existing default value. The closures should return the lazily cr

OptionsResolverInterface deprecated::setAllowedValues()

OptionsResolverInterface setAllowedValues(array $allowedValues) Sets allowed values for a list of options. Parameters array $allowedValues A list of option names as keys and arrays with values acceptable for that option as values. Return Value OptionsResolverInterface The resolver instance. Exceptions InvalidOptionsException If an option has not been defined (see {@link isKnown()}) for which an allowed value is set.

OptionsResolverInterface deprecated::setAllowedTypes()

OptionsResolverInterface setAllowedTypes(array $allowedTypes) Sets allowed types for a list of options. Parameters array $allowedTypes A list of option names as keys and type names passed as string or array as values. Return Value OptionsResolverInterface The resolver instance. Exceptions InvalidOptionsException If an option has not been defined for which an allowed type is set.