Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
BaseResultsType
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 getSourceFiltering
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace CirrusSearch\Search;
4
5/**
6 * Base class for result type implementations.
7 */
8abstract class BaseResultsType implements ResultsType {
9
10    /**
11     * @return false|string|array corresponding to Elasticsearch source filtering syntax
12     */
13    public function getSourceFiltering() {
14        return [ 'namespace', 'title', 'namespace_text', 'wiki' ];
15    }
16}