Exemplo n.º 1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'code', 'type' => TType::I32), 2 => array('var' => 'what', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['code'])) {
             $this->code = $vals['code'];
         }
         if (isset($vals['what'])) {
             $this->what = $vals['what'];
         }
     }
 }