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