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