Key value pair collection object
Expanded class hierarchy of Collection
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Collection:: |
protected | property | ||
Collection:: |
public | function | Add a value to a key. If a key of the same name has already been added, the key value will be converted into an array and the new value will be pushed to the end of the array. | |
Collection:: |
public | function | Removes all key value pairs | |
Collection:: |
public | function | Return the number of keys | |
Collection:: |
public | function | Iterates over each key value pair in the collection passing them to the Closure. If the Closure function returns true, the current value from input is returned into the result Collection. The Closure must accept three parameters: (string) $key,… | |
Collection:: |
public static | function | Create a new collection from an array, validate the keys, and add default values where missing | |
Collection:: |
public | function | Get a specific key value. | |
Collection:: |
public | function | Get all or a subset of matching key value pairs | |
Collection:: |
public | function | Get an iterator object | |
Collection:: |
public | function | Get all keys in the collection | |
Collection:: |
public | function | Return a collection value for a match array of a preg_replace function | |
Collection:: |
public | function | Returns whether or not the specified key is present. | |
Collection:: |
public | function | Checks if any keys contains a certain value | |
Collection:: |
public | function | Inject configuration settings into an input string | |
Collection:: |
public | function | Case insensitive search the keys in the collection | |
Collection:: |
public | function | Returns a Collection containing all the elements of the collection after applying the callback function to each one. The Closure should accept three parameters: (string) $key, (string) $value, (array) $context and return a modified value | |
Collection:: |
public | function | Add and merge in a Collection or array of key value pair data. | |
Collection:: |
public | function | ArrayAccess implementation of offsetExists() | |
Collection:: |
public | function | ArrayAccess implementation of offsetGet() | |
Collection:: |
public | function | ArrayAccess implementation of offsetGet() | |
Collection:: |
public | function | ArrayAccess implementation of offsetUnset() | |
Collection:: |
public | function | Remove a specific key value pair | |
Collection:: |
public | function | Replace the data of the object with the value of an array | |
Collection:: |
public | function | Set a key value pair | |
Collection:: |
public | function |
Get the array representation of an object Overrides ToArrayInterface:: |
|
Collection:: |
public | function | Constructor |