original_string: private function summarize(array $whereClause, $selector)
      {
          switch (count($whereClause)) {
              case 1:
                  return $whereClause[0];
  
              default:
                  if ($selector instanceof RecordSelector) {
                      return ['@OR' => $whereClause];
                  }
  
                  if ($selector instanceof DocumentSelector) {
                      return ['$or' => $whereClause];
                  }
          }
  
          return [];
      }
code: private function summarize(array $whereClause, $selector)
      {
          switch (count($whereClause)) {
              case 1:
                  return $whereClause[0];
  
              default:
                  if ($selector instanceof RecordSelector) {
                      return ['@OR' => $whereClause];
                  }
  
                  if ($selector instanceof DocumentSelector) {
                      return ['$or' => $whereClause];
                  }
          }
  
          return [];
      }
code_tokens: private function summarize ( array $ whereClause , $ selector ) { switch ( count ( $ whereClause ) ) { case 1 : return $ whereClause [ 0 ] ; default : if ( $ selector instanceof RecordSelector ) { return [ '@OR' => $ whereClause ] ; } if ( $ selector instanceof DocumentSelector ) { return [ '$or' => $ whereClause ] ; } } return [ ] ; }
docstring: Summarize expression array.
  
  @param array                           $whereClause
  @param RecordSelector|DocumentSelector $selector
  @return array
docstring_tokens: Summarize expression array .