| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 22 | public function unionAll(QueryBuilderInterface $queryBuilder) |
||
| 23 | { |
||
| 24 | if (CommandEnum::SELECT != $queryBuilder->commandData()) { |
||
| 25 | throw new QueryBuilderException(\sprintf( |
||
| 26 | '$queryBuilder should be with valid command! Valid command: "%s"', |
||
| 27 | CommandEnum::SELECT |
||
| 28 | )); |
||
| 29 | } |
||
| 30 | |||
| 31 | $this->unionAll[] = \sprintf('(%s)', $queryBuilder->buildQuery()); |
||
| 32 | |||
| 33 | $this->bind($queryBuilder->bindData()); |
||
|
|
|||
| 34 | |||
| 35 | return $this; |
||
| 36 | } |
||
| 46 |