Example #1
0
 private function setBatch(pb\Response $response)
 {
     $this->isComplete = $response->getType() == pb\Response_ResponseType::PB_SUCCESS_SEQUENCE;
     $this->currentIndex = 0;
     $this->currentSize = $response->getResponseCount();
     $this->currentData = array();
     for ($i = 0; $i < $this->currentSize; ++$i) {
         $datum = protobufToDatum($response->getResponseAt($i));
         $this->currentData[$i] = $datum;
     }
 }
Example #2
0
 private function createDatumFromResponse(pb\Response $response)
 {
     $datum = $response->getResponseAt(0);
     return protobufToDatum($datum);
 }