MutableConfigCollectionInterface
interface MutableConfigCollectionInterface implements ConfigCollectionInterface
Methods
Fetches value for a class, or a property on that class
Checks to see if a config item exists, or a property on that class
Get nested version of this config, which is normally duplicated version of this config, but could be a subclass.
Sets config for a given field.
Merge a config for a class, or a field on that class
Remove config for a given class, or field on that class
Delete all entries
Details
in ConfigCollectionInterface at line 22
mixed
get(string $class, string $name = null, int|true $excludeMiddleware)
Fetches value for a class, or a property on that class
in ConfigCollectionInterface at line 34
bool
exists(string $class, string $name = null, int|true $excludeMiddleware)
Checks to see if a config item exists, or a property on that class
in ConfigCollectionInterface at line 41
array
getMetadata()
Returns the entire metadata
in ConfigCollectionInterface at line 48
getHistory()
in ConfigCollectionInterface at line 57
ConfigCollectionInterface
nest()
Get nested version of this config, which is normally duplicated version of this config, but could be a subclass.
in ConfigCollectionInterface at line 62
Middleware[]
getMiddlewares()
in ConfigCollectionInterface at line 68
$this
setMiddlewares(Middleware[] $middlewares)
in ConfigCollectionInterface at line 74
$this
addMiddleware(Middleware $middleware)
in ConfigCollectionInterface at line 81
array
getAll()
Get complete config (excludes middleware)
at line 17
$this
set(string $class, string $name, mixed $value, array $metadata = [])
Sets config for a given field.
Set name to null to set the config for the entire class.
at line 27
$this
merge(string $class, string $name, mixed $value)
Merge a config for a class, or a field on that class
at line 36
$this
remove(string $class, string $name = null)
Remove config for a given class, or field on that class
at line 41
removeAll()
Delete all entries