MCPcopy Create free account
hub / github.com/Rello/analytics / setValue

Method setValue

lib/DataSession.php:56–69  ·  view source on GitHub ↗
(string $key, string $token, string $value)

Source from the content-addressed store, hash-verified

54 }
55
56 protected function setValue(string $key, string $token, string $value): void
57 {
58 $values = $this->session->get($key);
59 if ($values === null) {
60 $values = [];
61 } else {
62 $values = json_decode($values, true);
63 if ($values === null) {
64 $values = [];
65 }
66 }
67 $values[$token] = $value;
68 $this->session->set($key, json_encode($values));
69 }
70
71 public function removePasswordForShare(string $token): void
72 {

Callers 2

setPasswordForShareMethod · 0.95

Calls 2

setMethod · 0.80
getMethod · 0.45

Tested by 1