public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'event', 'type' => TType::STRING), 2 => array('var' => 'id', 'type' => TType::I32), 3 => array('var' => 'type', 'type' => TType::I32), 4 => array('var' => 'destination', 'type' => TType::I32)); } if (is_array($vals)) { if (isset($vals['event'])) { $this->event = $vals['event']; } if (isset($vals['id'])) { $this->id = $vals['id']; } if (isset($vals['type'])) { $this->type = $vals['type']; } if (isset($vals['destination'])) { $this->destination = $vals['destination']; } } }