original_string: public static function batchesPage($json)
      {
          $fields = Deserialize::_fromJson($json);
  
          $result = new Api\Page();
          $result->setPage($fields->page);
          $result->setSize($fields->page_size);
          $result->setTotalSize($fields->count);
          $result->setContent(
              array_map(
                  function ($s) use ($json) {
                      return Deserialize::_batchResponseFromFields($json, $s);
                  },
                  $fields->batches
              )
          );
  
          return $result;
      }
code: public static function batchesPage($json)
      {
          $fields = Deserialize::_fromJson($json);
  
          $result = new Api\Page();
          $result->setPage($fields->page);
          $result->setSize($fields->page_size);
          $result->setTotalSize($fields->count);
          $result->setContent(
              array_map(
                  function ($s) use ($json) {
                      return Deserialize::_batchResponseFromFields($json, $s);
                  },
                  $fields->batches
              )
          );
  
          return $result;
      }
code_tokens: public static function batchesPage ( $ json ) { $ fields = Deserialize :: _fromJson ( $ json ) ; $ result = new Api \ Page ( ) ; $ result -> setPage ( $ fields -> page ) ; $ result -> setSize ( $ fields -> page_size ) ; $ result -> setTotalSize ( $ fields -> count ) ; $ result -> setContent ( array_map ( function ( $ s ) use ( $ json ) { return Deserialize :: _batchResponseFromFields ( $ json , $ s ) ; } , $ fields -> batches ) ) ; return $ result ; }
docstring: Reads a JSON blob describing a page of batches.
  
  @param string $json the JSON text
  
  @return Api\Page the parsed page
  
  @throws UnexpectedResponseException if the JSON contained an
  unexpected message type
docstring_tokens: Reads a JSON blob describing a page of batches .