Exemplo n.º 1
0
 public function write($output)
 {
     $xfer = 0;
     $xfer += $output->writeStructBegin('THBaseService_get_args');
     if ($this->table !== null) {
         $xfer += $output->writeFieldBegin('table', TType::STRING, 1);
         $xfer += $output->writeString($this->table);
         $xfer += $output->writeFieldEnd();
     }
     if ($this->tget !== null) {
         if (!is_object($this->tget)) {
             throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
         }
         $xfer += $output->writeFieldBegin('tget', TType::STRUCT, 2);
         $xfer += $this->tget->write($output);
         $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
 }