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

Method setValue

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

Source from the content-addressed store, hash-verified

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

Callers 2

setShareAuthenticatedMethod · 0.95

Calls 2

setMethod · 0.80
getMethod · 0.45

Tested by 1