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 [];
    }
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 [];
    }
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 [ ] ; }
Summarize expression array.

@param array                           $whereClause
@param RecordSelector|DocumentSelector $selector
@return array
Summarize expression array .