interface AttributeBagInterface implements SessionBagInterface
Attributes store.
Methods
string | getName() Gets this bag's name. | from SessionBagInterface |
initialize(array $array) Initializes the Bag. | from SessionBagInterface | |
string | getStorageKey() Gets the storage key for this bag. | from SessionBagInterface |
mixed | clear() Clears out data from bag. | from SessionBagInterface |
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
string getName()
Gets this bag's name.
initialize(array $array)
Initializes the Bag.
string getStorageKey()
Gets the storage key for this bag.
mixed clear()
Clears out data from bag.
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.
Please login to continue.