23 $clone->store[
$key] = $value;
33 unset($clone->store[$key]);
42 return $this->store[
$key];
50 return json_encode($this->store);
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.