Methods |
public
|
append(string $key, mixed $value = null): void
Append a value to a key (assumes key refers to an array value) If the key does not yet exist it will be created.
If the key references a non-array it's existing contents will be added into a new array before appending the new value.
Append a value to a key (assumes key refers to an array value) If the key does not yet exist it will be created.
If the key references a non-array it's existing contents will be added into a new array before appending the new value.
Throws
Implemented by
|
#
|
public
|
set(string $key, mixed $value = null): void
Set a value for a key If the key does not yet exist it will be created.
Set a value for a key If the key does not yet exist it will be created.
Throws
Implemented by
|
#
|
public
|
remove(string $key): void
Remove a key No exception will be thrown if the key does not exist
Remove a key No exception will be thrown if the key does not exist
Throws
Implemented by
|
#
|
public
|
get(string $key, mixed $default = null): mixed
Get the raw value for a key If the key does not exist, an optional default value can be returned instead.
If no default is provided then an exception will be thrown instead.
Get the raw value for a key If the key does not exist, an optional default value can be returned instead.
If no default is provided then an exception will be thrown instead.
Throws
Implemented by
|
#
|
public
|
has(string $key): bool
|
#
|
public
|
getData(string $key): DataInterface
Get a data instance for a key
Get a data instance for a key
Throws
Implemented by
|
#
|
public
|
import(array<string, mixed> $data, self::PRESERVE|self::REPLACE|self::MERGE $mode = self::REPLACE): void
Import data into existing data
Import data into existing data
Implemented by
|
#
|
public
|
importData(DataInterface $data, self::PRESERVE|self::REPLACE|self::MERGE $mode = self::REPLACE): void
Import data from an external data into existing data
Import data from an external data into existing data
Implemented by
|
#
|
public
|
export(): array<string, mixed>
|
#
|