CollectionInterface
interface CollectionInterface
Collection interface
Methods
void
clear()
Delete all collection items
Collection
copy()
Copy collection
bool
isEmpty(string $key)
Return true if collection item is empty
array
toArray()
Convert collection to array
mixed
get(string $key, mixed $default = null)
Get value from collection
mixed
getByPath(string $path, mixed $default = null)
Get value by path
Collection
set(string $key, mixed $value)
Set item value in collection
Details
at line 22
void
clear()
Delete all collection items
at line 29
Collection
copy()
Copy collection
at line 37
bool
isEmpty(string $key)
Return true if collection item is empty
at line 44
array
toArray()
Convert collection to array
at line 53
mixed
get(string $key, mixed $default = null)
Get value from collection
at line 62
mixed
getByPath(string $path, mixed $default = null)
Get value by path
at line 71
Collection
set(string $key, mixed $value)
Set item value in collection