public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'sessionHandle', 'type' => TType::STRUCT, 'class' => '\\TSessionHandle'), 2 => array('var' => 'parentCatalogName', 'type' => TType::STRING), 3 => array('var' => 'parentSchemaName', 'type' => TType::STRING), 4 => array('var' => 'parentTableName', 'type' => TType::STRING), 5 => array('var' => 'foreignCatalogName', 'type' => TType::STRING), 6 => array('var' => 'foreignSchemaName', 'type' => TType::STRING), 7 => array('var' => 'foreignTableName', 'type' => TType::STRING)); } if (is_array($vals)) { if (isset($vals['sessionHandle'])) { $this->sessionHandle = $vals['sessionHandle']; } if (isset($vals['parentCatalogName'])) { $this->parentCatalogName = $vals['parentCatalogName']; } if (isset($vals['parentSchemaName'])) { $this->parentSchemaName = $vals['parentSchemaName']; } if (isset($vals['parentTableName'])) { $this->parentTableName = $vals['parentTableName']; } if (isset($vals['foreignCatalogName'])) { $this->foreignCatalogName = $vals['foreignCatalogName']; } if (isset($vals['foreignSchemaName'])) { $this->foreignSchemaName = $vals['foreignSchemaName']; } if (isset($vals['foreignTableName'])) { $this->foreignTableName = $vals['foreignTableName']; } } }