| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | final public function handle(Query $query): DTO |
||
| 27 | { |
||
| 28 | if ($query->getQueryType() !== $this->getSupportedQueryType()) { |
||
| 29 | throw new InvalidQueryException(\sprintf( |
||
| 30 | 'Query handler "%s" can only handle "%s" queries, "%s" given.', |
||
| 31 | static::class, |
||
| 32 | $this->getSupportedQueryType(), |
||
| 33 | $query->getQueryType() |
||
| 34 | )); |
||
| 35 | } |
||
| 36 | |||
| 37 | return $this->handleQuery($query); |
||
| 38 | } |
||
| 56 |