KeyValueStore
in package
FinalYes
Code adapted from https://github.com/adbario/php-dot-notation/blob/2.x/src/Dot.php Copyright (c) Riku Särkinen <riku@adbar.io> - MIT License.
Tags
Table of Contents
Properties
- $map : array<string|int, mixed>
Methods
- all() : array<string|int, mixed>
- delete() : void
- get() : mixed
- has() : bool
- isEmpty() : bool
- new() : self
- set() : void
- setAll() : void
- setIfNotSet() : void
- __construct() : mixed
Properties
$map
private
array<string|int, mixed>
$map
Methods
all()
public
all() : array<string|int, mixed>
Return values
array<string|int, mixed>delete()
public
delete(string $key) : void
Parameters
- $key : string
get()
public
get(string $key[, mixed $default = null ]) : mixed
Parameters
- $key : string
- $default : mixed = null
has()
public
has(string $key) : bool
Parameters
- $key : string
Return values
boolisEmpty()
public
isEmpty() : bool
Return values
boolnew()
public
static new([array<string|int, mixed> $keyValuePairs = [] ]) : self
Parameters
- $keyValuePairs : array<string|int, mixed> = []
Return values
selfset()
public
set(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed
setAll()
public
setAll(array<string|int, mixed> $keyValuePairs) : void
Parameters
- $keyValuePairs : array<string|int, mixed>
setIfNotSet()
public
setIfNotSet(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed
__construct()
private
__construct(array<string|int, mixed> $keyValueMap) : mixed
Parameters
- $keyValueMap : array<string|int, mixed>