| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 15 | public function buildQuery($SQL, ParameterManagerInterface $parameterManager, $connectionHint = null) |
|
| 40 | { |
||
| 41 | 15 | if ($connectionHint instanceof ConnectionInterface) { |
|
| 42 | 3 | $connection = $connectionHint; |
|
| 43 | 3 | } else { |
|
| 44 | 12 | $connection = $this->connectionManager->getConnection($connectionHint); |
|
| 45 | } |
||
| 46 | |||
| 47 | 15 | return new Query($SQL, $parameterManager, $connection); |
|
| 48 | } |
||
| 49 | } |
||
| 50 |