__construct() __construct(string $storageKey = '_sf2_attributes') Parameters string $storageKey The key used to store attributes in the session
has() has(string $name) : boolean Checks if an attribute is defined. Parameters string $name The attribute name Returns boolean — true if the attribute is defined, false otherwise
get() get(string $name, mixed $default = null) : mixed Returns an attribute. Parameters string $name The attribute name mixed $default The default value if not found Returns mixed
remove() remove(string $name) : mixed Removes an attribute. Parameters string $name Returns mixed — The removed value or null when it does not exist
getIterator() getIterator() : \ArrayIterator Returns an iterator for attributes. Returns \ArrayIterator — An \ArrayIterator instance
count() count() : integer Returns the number of attributes. Returns integer — The number of attributes