AttributeBagInterface
interface AttributeBagInterface implements SessionBagInterface
Attributes store.
Methods
bool
has(string $name)
Checks if an attribute is defined.
mixed
get(string $name, mixed $default = null)
Returns an attribute.
set(string $name, mixed $value)
Sets an attribute.
array
all()
Returns attributes.
replace(array $attributes)
Sets attributes.
mixed
remove(string $name)
Removes an attribute.
Details
in SessionBagInterface at line line 26
string
getName()
Gets this bag's name.
in SessionBagInterface at line line 33
initialize(array $array)
Initializes the Bag.
in SessionBagInterface at line line 40
string
getStorageKey()
Gets the storage key for this bag.
in SessionBagInterface at line line 47
mixed
clear()
Clears out data from bag.
at line line 30
bool
has(string $name)
Checks if an attribute is defined.
at line line 40
mixed
get(string $name, mixed $default = null)
Returns an attribute.
at line line 48
set(string $name, mixed $value)
Sets an attribute.
at line line 55
array
all()
Returns attributes.
at line line 62
replace(array $attributes)
Sets attributes.
at line line 71
mixed
remove(string $name)
Removes an attribute.