Esempio n. 1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'columnName', 'type' => TType::STRING), 2 => array('var' => 'typeDesc', 'type' => TType::STRUCT, 'class' => '\\TTypeDesc'), 3 => array('var' => 'position', 'type' => TType::I32), 4 => array('var' => 'comment', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['columnName'])) {
             $this->columnName = $vals['columnName'];
         }
         if (isset($vals['typeDesc'])) {
             $this->typeDesc = $vals['typeDesc'];
         }
         if (isset($vals['position'])) {
             $this->position = $vals['position'];
         }
         if (isset($vals['comment'])) {
             $this->comment = $vals['comment'];
         }
     }
 }
Esempio n. 2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'columnName', 'type' => TType::STRING), 2 => array('var' => 'columnType', 'type' => TType::I32));
     }
     if (is_array($vals)) {
         if (isset($vals['columnName'])) {
             $this->columnName = $vals['columnName'];
         }
         if (isset($vals['columnType'])) {
             $this->columnType = $vals['columnType'];
         }
     }
 }