Skip to content

Commit

Permalink
Make QueryEngines getCandidateData be CandID => DataInstance instead …
Browse files Browse the repository at this point in the history
…of DataInstance[]
  • Loading branch information
driusan committed Dec 7, 2022
1 parent cf9f16d commit 1597f52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/instruments/php/instrumentqueryengine.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class InstrumentQueryEngine implements \LORIS\Data\Query\QueryEngine
* @param iterable $candidates Candidates whose data we want
* @param ?array $visitlist List of visits that we want data for
*
* @return \LORIS\Data\DataInstance[]
* @return iterable<string, \LORIS\Data\DataInstance>
*/
public function getCandidateData(
array $items,
Expand Down
5 changes: 4 additions & 1 deletion src/Data/Query/QueryEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@ public function getCandidateMatches(
* Retrieve the data for a given list of DictionaryItems from this
* engine's data dictionary and a given list of CandIDs.
*
* The returned value is a type where the key is the CandID (as
* a string) and the value is a DataInstance.
*
* If visits is declared, only include data for those visits labels.
*
* @param DictionaryItem[] $items Data points to retrieve
* @param CandID[] $candidates Candidates to retrieve data for
* @param ?string[] $visits Visit labels to restrict data to
*
* @return DataInstance[]
* @return iterable<string,DataInstance>
*/
public function getCandidateData(array $items, iterable $candidates, ?array $visitlist) : iterable;

Expand Down

0 comments on commit 1597f52

Please sign in to comment.