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

Method __construct

connection-examples/php/state.php:27–37  ·  view source on GitHub ↗
($collectHistory = false)

Source from the content-addressed store, hash-verified

25 private $history;
26
27 public function __construct($collectHistory = false) {
28 $this->state = array();
29 $this->timestamp = 0;
30 $this->valid = true;
31
32 // Define $history as a local variable
33 $this->history = null;
34 if ($collectHistory) {
35 $this->history = array();
36 }
37 }
38
39 public function get_history() {
40 return $this->history;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected