File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,19 @@ public function __construct(
21
21
}
22
22
23
23
/**
24
- * @param array<string, string|int> $filters
24
+ * @param QueryBuilder| array<string, string|int> $filters
25
25
* @param int|null $year
26
26
* @return Response
27
27
* @throws InvalidResponseClassException
28
28
* @throws PendingRequestException
29
- * @throws ReflectionException
29
+ * @throws ReflectionException|\Throwable
30
30
*/
31
- public function getAssessmentData (array $ filters , ?int $ year = null ): Response
31
+ public function getAssessmentData (QueryBuilder | array $ filters , ?int $ year = null ): Response
32
32
{
33
+ if ($ filters instanceof QueryBuilder) {
34
+ $ filters = $ filters ->filters ;
35
+ $ year = $ filters ->year ;
36
+ }
33
37
return $ this ->send (new QueryDataRequest ($ filters , $ year ))->throw ();
34
38
}
35
39
You can’t perform that action at this time.
0 commit comments