3 declare(strict_types=1);
25 $clone->store[
$key] = $value;
35 unset($clone->store[$key]);
47 return $this->store[
$key];
55 return json_encode($this->store, JSON_THROW_ON_ERROR);
withValueFor(string $key, string $value)
Set a value for a key of the state.
getValueFor(string $key)
Get the value for the given key.
Keeps the state of a view in a simple stringly type key-value store.
serialize()
Get the key-value store as string.
withoutKey(string $key)
Remove the key-value-pair.