original_string: public function hmset($key, ...$dictionary)
      {
          if (count($dictionary) === 1) {
              $dictionary = $dictionary[0];
          } else {
              $input = collect($dictionary);
  
              $dictionary = $input->nth(2)->combine($input->nth(2, 1))->toArray();
          }
  
          return $this->command('hmset', [$key, $dictionary]);
      }
code: public function hmset($key, ...$dictionary)
      {
          if (count($dictionary) === 1) {
              $dictionary = $dictionary[0];
          } else {
              $input = collect($dictionary);
  
              $dictionary = $input->nth(2)->combine($input->nth(2, 1))->toArray();
          }
  
          return $this->command('hmset', [$key, $dictionary]);
      }
code_tokens: public function hmset ( $ key , ... $ dictionary ) { if ( count ( $ dictionary ) === 1 ) { $ dictionary = $ dictionary [ 0 ] ; } else { $ input = collect ( $ dictionary ) ; $ dictionary = $ input -> nth ( 2 ) -> combine ( $ input -> nth ( 2 , 1 ) ) -> toArray ( ) ; } return $ this -> command ( 'hmset' , [ $ key , $ dictionary ] ) ; }
docstring: Set the given hash fields to their respective values.
  
  @param  string  $key
  @param  dynamic  $dictionary
  @return int
docstring_tokens: Set the given hash fields to their respective values .