Symfony\Component\HttpFoundation\ParameterBag
ParameterBag is a container for key/value pairs.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class ParameterBag
implements
IteratorAggregate,Countable
{
- // members
- protected array $parameters;
- // methods
- public void __construct()
- public array all()
- public array keys()
- public void replace()
- public void add()
- public mixed get()
- public void set()
- public Boolean has()
- public void remove()
- public string getAlpha()
- public string getAlnum()
- public string getDigits()
- public integer getInt()
- public mixed filter()
- public ArrayIterator getIterator()
- public int count()
Hierarchy
Extended by
Implements
Members
protected
- $parameters
—
array
Parameter storage.
Methods
public
- __construct() — Constructor.
- add() — Adds parameters.
- all() — Returns the parameters.
- count() — Returns the number of parameters.
- filter() — Filter key.
- get() — Returns a parameter by name.
- getAlnum() — Returns the alphabetic characters and digits of the parameter value.
- getAlpha() — Returns the alphabetic characters of the parameter value.
- getDigits() — Returns the digits of the parameter value.
- getInt() — Returns the parameter value converted to integer.
- getIterator() — Returns an iterator for parameters.
- has() — Returns true if the parameter is defined.
- keys() — Returns the parameter keys.
- remove() — Removes a parameter.
- replace() — Replaces the current parameters by a new set.
- set() — Sets a parameter by name.