Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
CachedQueryResults | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
getArray | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace WikibaseQuality\ConstraintReport\ConstraintCheck\Cache; |
4 | |
5 | /** |
6 | * Results of a SPARQL query, along with information whether and how they were cached. |
7 | * The results are represented using the |
8 | * {@link https://www.w3.org/TR/sparql11-results-json/ SPARQL 1.1 Query Results JSON Format}. |
9 | * |
10 | * @license GPL-2.0-or-later |
11 | */ |
12 | class CachedQueryResults extends CachedArray { |
13 | |
14 | /** |
15 | * @return array The query results. |
16 | * For SELECT queries, you typically iterate over ['results']['bindings'], |
17 | * while for ASK queries, you typically check ['boolean']. |
18 | */ |
19 | public function getArray() { |
20 | return parent::getArray(); |
21 | } |
22 | |
23 | } |