| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.0175 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | 1 | private function generateWhereClause(DataMap $dataMap): string |
|
| 41 | { |
||
| 42 | 1 | $result = ""; |
|
| 43 | 1 | foreach ($this->criteria as $criterion) { |
|
| 44 | 1 | if (strlen($result) != 0) { |
|
| 45 | $result .= " AND "; |
||
| 46 | } |
||
| 47 | 1 | $result .= $criterion->generateSql($dataMap); |
|
| 48 | 1 | $this->bindValues[] = $criterion->getValue(); |
|
| 49 | } |
||
| 50 | |||
| 51 | 1 | return $result; |
|
| 52 | } |
||
| 54 |