public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'o1', 'type' => TType::STRUCT, 'class' => 'metastore_AlreadyExistsException'), 2 => array('var' => 'o2', 'type' => TType::STRUCT, 'class' => 'metastore_InvalidObjectException'), 3 => array('var' => 'o3', 'type' => TType::STRUCT, 'class' => 'metastore_MetaException'));
     }
     if (is_array($vals)) {
         if (isset($vals['o1'])) {
             $this->o1 = $vals['o1'];
         }
         if (isset($vals['o2'])) {
             $this->o2 = $vals['o2'];
         }
         if (isset($vals['o3'])) {
             $this->o3 = $vals['o3'];
         }
     }
 }
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(0 => array('var' => 'success', 'type' => TType::BOOL), 1 => array('var' => 'o1', 'type' => TType::STRUCT, 'class' => 'metastore_AlreadyExistsException'), 2 => array('var' => 'o2', 'type' => TType::STRUCT, 'class' => 'metastore_MetaException'));
     }
     if (is_array($vals)) {
         if (isset($vals['success'])) {
             $this->success = $vals['success'];
         }
         if (isset($vals['o1'])) {
             $this->o1 = $vals['o1'];
         }
         if (isset($vals['o2'])) {
             $this->o2 = $vals['o2'];
         }
     }
 }