MCPcopy Create free account
hub / github.com/MaterializeInc/demos / get_state

Method get_state

connection-examples/php/state.php:43–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 public function get_state() {
44 $list = array();
45
46 foreach ($this->state as $key => $value) {
47 $clone = json_decode($key);
48 $i = 0;
49 while ($i < $value) {
50 $list[] = $clone;
51 $i++;
52 }
53 }
54
55 return $list;
56 }
57
58 public function validate($timestamp) {
59 if (!$this->valid) {

Callers 1

subscribe.phpFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected