CollectionInterface
interface CollectionInterface (View source)
Methods
bool
has(string $key)
Check for existence of a key in the session collection
bool
isEmpty()
Check if a collection is empty.
mixed
get(string $key, mixed $default = null)
Allows to recover a value or value collection.
add(string $key, $data, bool $next = false)
Add an entry to the collection
remove(string $key)
Delete an entry in the collection
set(string $key, mixed $value)
Modify an entry in the collection
array
toArray()
Return all the entries of the collection as an array
array
toObject()
Return all entries of the collection as an object
Details
bool
has(string $key)
Check for existence of a key in the session collection
bool
isEmpty()
Check if a collection is empty.
mixed
get(string $key, mixed $default = null)
Allows to recover a value or value collection.
CollectionInterface
add(string $key, $data, bool $next = false)
Add an entry to the collection
CollectionInterface
remove(string $key)
Delete an entry in the collection
CollectionInterface
set(string $key, mixed $value)
Modify an entry in the collection
array
toArray()
Return all the entries of the collection as an array
array
toObject()
Return all entries of the collection as an object