Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function requestQuery( |
||
43 | QueryInterface $query, |
||
44 | int $timeout = 500000, |
||
45 | bool $debug = false |
||
46 | ): AbstractResult { |
||
47 | if ($query instanceof AbstractStreamQuery) { |
||
48 | return parent::requestQuery($query, $timeout, $debug); |
||
49 | } |
||
50 | throw new StreamQueryException( |
||
51 | "You must extends " . AbstractStreamQuery::class |
||
52 | ); |
||
53 | } |
||
54 | } |
||
55 |