Symfony\Component\OptionsResolver\Options
Container for resolving inter-dependent options.
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class Options
implements
ArrayAccess,Iterator,Countable
{
- // members
- private array $options;
- private array $normalizers;
- private array $lazy;
- private array $lock;
- private Boolean $reading;
- // methods
- public void set()
- public void setNormalizer()
- public void replace()
- public void overload()
- public mixed get()
- public Boolean has()
- public void remove()
- public void clear()
- public array all()
- public Boolean offsetExists()
- public mixed offsetGet()
- public void offsetSet()
- public void offsetUnset()
- public void current()
- public void next()
- public void key()
- public void valid()
- public void rewind()
- public void count()
- private void resolve()
- private void normalize()
Hierarchy
Implements
Members
private
- $lazy
—
array
A list of closures for evaluating lazy options. - $lock
—
array
A list containing the currently locked options. - $normalizers
—
array
A list of normalizer closures. - $options
—
array
A list of option values. - $reading
—
Symfony\Component\OptionsResolver\Boolean
Whether at least one option has already been read.
Methods
private
- normalize() — Normalizes the given option.
- resolve() — Evaluates the given lazy option.
public
- all() — Returns the values of all options.
- clear() — Removes all options.
- count() — {@inheritdoc}
- current() — {@inheritdoc}
- get() — Returns the value of the given option.
- has() — Returns whether the given option exists.
- key() — {@inheritdoc}
- next() — {@inheritdoc}
- offsetExists() — Equivalent to {@link has()}.
- offsetGet() — Equivalent to {@link get()}.
- offsetSet() — Equivalent to {@link set()}.
- offsetUnset() — Equivalent to {@link remove()}.
- overload() — Overloads the value of a given option.
- remove() — Removes the option with the given name.
- replace() — Replaces the contents of the container with the given options.
- rewind() — {@inheritdoc}
- set() — Sets the value of a given option.
- setNormalizer() — Sets the normalizer for a given option.
- valid() — {@inheritdoc}