src/Offer/Security/Sapi3SearchQueryFactory.php 1 location
|
@@ 18-26 (lines=9) @@
|
| 15 |
|
* @param StringLiteral $offerId |
| 16 |
|
* @return string |
| 17 |
|
*/ |
| 18 |
|
protected function createQueryString( |
| 19 |
|
StringLiteral $constraint, |
| 20 |
|
StringLiteral $offerId |
| 21 |
|
) { |
| 22 |
|
$constraintStr = '(' . $constraint->toNative() . ')'; |
| 23 |
|
$offerIdStr = $offerId->toNative(); |
| 24 |
|
|
| 25 |
|
return '(' . $constraintStr . ' AND id:' . $offerIdStr . ')'; |
| 26 |
|
} |
| 27 |
|
} |
| 28 |
|
|
src/Offer/Security/SearchQueryFactory.php 1 location
|
@@ 17-25 (lines=9) @@
|
| 14 |
|
* @param StringLiteral $offerId |
| 15 |
|
* @return string |
| 16 |
|
*/ |
| 17 |
|
protected function createQueryString( |
| 18 |
|
StringLiteral $constraint, |
| 19 |
|
StringLiteral $offerId |
| 20 |
|
) { |
| 21 |
|
$constraintStr = '(' . strtolower($constraint->toNative()) . ')'; |
| 22 |
|
$offerIdStr = $offerId->toNative(); |
| 23 |
|
|
| 24 |
|
return '(' . $constraintStr . ' AND cdbid:' . $offerIdStr . ')'; |
| 25 |
|
} |
| 26 |
|
} |
| 27 |
|
|