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