original_string: public function searchGameModes($search, $fields = ['name', 'slug', 'url'], $limit = 10, $offset = 0)
      {
          $apiUrl = $this->getEndpoint('game_modes');
  
          $params = array(
              'fields' => implode(',', $fields),
              'limit' => $limit,
              'offset' => $offset,
              'search' => $search,
          );
  
          $apiData = $this->apiGet($apiUrl, $params);
  
          return $this->decodeMultiple($apiData);
      }
code: public function searchGameModes($search, $fields = ['name', 'slug', 'url'], $limit = 10, $offset = 0)
      {
          $apiUrl = $this->getEndpoint('game_modes');
  
          $params = array(
              'fields' => implode(',', $fields),
              'limit' => $limit,
              'offset' => $offset,
              'search' => $search,
          );
  
          $apiData = $this->apiGet($apiUrl, $params);
  
          return $this->decodeMultiple($apiData);
      }
code_tokens: public function searchGameModes ( $ search , $ fields = [ 'name' , 'slug' , 'url' ] , $ limit = 10 , $ offset = 0 ) { $ apiUrl = $ this -> getEndpoint ( 'game_modes' ) ; $ params = array ( 'fields' => implode ( ',' , $ fields ) , 'limit' => $ limit , 'offset' => $ offset , 'search' => $ search , ) ; $ apiData = $ this -> apiGet ( $ apiUrl , $ params ) ; return $ this -> decodeMultiple ( $ apiData ) ; }
docstring: Search game modes by name
  
  @param string $search
  @param array $fields
  @param integer $limit
  @param integer $offset
  @return \StdClass
  @throws \Exception
docstring_tokens: Search game modes by name