original_string: public function buildResult($result)
      {
          $updates = [];
  
          foreach ($result as $updateData) {
              $update = new Update($updateData);
              $updates[] = $update;
              $this->lastUpdateId = max($this->lastUpdateId, $update->updateId);
          }
  
          return $updates;
      }
code: public function buildResult($result)
      {
          $updates = [];
  
          foreach ($result as $updateData) {
              $update = new Update($updateData);
              $updates[] = $update;
              $this->lastUpdateId = max($this->lastUpdateId, $update->updateId);
          }
  
          return $updates;
      }
code_tokens: public function buildResult ( $ result ) { $ updates = [ ] ; foreach ( $ result as $ updateData ) { $ update = new Update ( $ updateData ) ; $ updates [ ] = $ update ; $ this -> lastUpdateId = max ( $ this -> lastUpdateId , $ update -> updateId ) ; } return $ updates ; }
docstring: Build result type from array of data.
  
  @param array $result
  
  @return Update[]
docstring_tokens: Build result type from array of data .