| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 59 | private function createQueryString( |
||
| 60 | StringLiteral $constraint, |
||
| 61 | StringLiteral $offerId |
||
| 62 | ) { |
||
| 63 | $constraintStr = '(' . strtolower($constraint->toNative()) . ')'; |
||
| 64 | $offerIdStr = $offerId->toNative(); |
||
| 65 | |||
| 66 | if ($this->sapiVersion->sameValueAs(SapiVersion::V3())) { |
||
| 67 | $id = 'id'; |
||
| 68 | } else { |
||
| 69 | $id = 'cdbid'; |
||
| 70 | } |
||
| 71 | |||
| 72 | return '(' . $constraintStr . ' AND ' . $id . ':' . $offerIdStr . ')'; |
||
| 73 | } |
||
| 74 | } |
||
| 75 |