| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 46 | public function ensureNeededTablesArePresent(array $snippets): void |
|
| 33 | { |
||
| 34 | 46 | foreach($this->neededTableNames as $tableName) |
|
| 35 | { |
||
| 36 | 9 | if(! $this->isAtLeastOneSnippetHasNeededTable($tableName, $snippets)) |
|
| 37 | { |
||
| 38 | 3 | throw new \LogicException("One of query parts you used needs $tableName table"); |
|
| 39 | } |
||
| 40 | } |
||
| 41 | 43 | } |
|
| 42 | |||
| 61 |