public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'value', 'type' => TType::STRING), 2 => array('var' => 'timestamp', 'type' => TType::I64)); } if (is_array($vals)) { if (isset($vals['value'])) { $this->value = $vals['value']; } if (isset($vals['timestamp'])) { $this->timestamp = $vals['timestamp']; } } }