We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getAssessmentData
1 parent 7315c65 commit bf65af5Copy full SHA for bf65af5
1 file changed
src/SteerConnector.php
@@ -21,15 +21,19 @@ public function __construct(
21
}
22
23
/**
24
- * @param array<string, string|int> $filters
+ * @param QueryBuilder|array<string, string|int> $filters
25
* @param int|null $year
26
* @return Response
27
* @throws InvalidResponseClassException
28
* @throws PendingRequestException
29
- * @throws ReflectionException
+ * @throws ReflectionException|\Throwable
30
*/
31
- public function getAssessmentData(array $filters, ?int $year = null): Response
+ public function getAssessmentData(QueryBuilder|array $filters, ?int $year = null): Response
32
{
33
+ if ($filters instanceof QueryBuilder) {
34
+ $filters = $filters->filters;
35
+ $year = $filters->year;
36
+ }
37
return $this->send(new QueryDataRequest($filters, $year))->throw();
38
39
0 commit comments