original_string: public function findDocuments(array $ids, $limit = null, $offset = null)
      {
          $path = "/{$this->name}/_all_docs?include_docs=true";
  
          if (null !== $limit) {
              $path .= '&limit='.(integer) $limit;
          }
          if (null !== $offset) {
              $path .= '&skip='.(integer) $offset;
          }
  
          $response = $this->client->request('POST', $path, [
              'body'    => JSONEncoder::encode(['keys' => $ids]),
              'headers' => ['Content-Type'             => 'application/json'],
          ]);
  
          return JSONEncoder::decode((string) $response->getBody());
      }
code: public function findDocuments(array $ids, $limit = null, $offset = null)
      {
          $path = "/{$this->name}/_all_docs?include_docs=true";
  
          if (null !== $limit) {
              $path .= '&limit='.(integer) $limit;
          }
          if (null !== $offset) {
              $path .= '&skip='.(integer) $offset;
          }
  
          $response = $this->client->request('POST', $path, [
              'body'    => JSONEncoder::encode(['keys' => $ids]),
              'headers' => ['Content-Type'             => 'application/json'],
          ]);
  
          return JSONEncoder::decode((string) $response->getBody());
      }
code_tokens: public function findDocuments ( array $ ids , $ limit = null , $ offset = null ) { $ path = "/{$this->name}/_all_docs?include_docs=true" ; if ( null !== $ limit ) { $ path .= '&limit=' . ( integer ) $ limit ; } if ( null !== $ offset ) { $ path .= '&skip=' . ( integer ) $ offset ; } $ response = $ this -> client -> request ( 'POST' , $ path , [ 'body' => JSONEncoder :: encode ( [ 'keys' => $ ids ] ) , 'headers' => [ 'Content-Type' => 'application/json' ] , ] ) ; return JSONEncoder :: decode ( ( string ) $ response -> getBody ( ) ) ; }
docstring: Find a documents by a id.
  
  @param array    $ids
  @param null|int $limit
  @param null|int $offset
  
  @return array|null
docstring_tokens: Find a documents by a id .