src/POData/Providers/Expression/MySQLExpressionProvider.php 1 location
|
@@ 191-200 (lines=10) @@
|
188 |
|
* |
189 |
|
* @return string |
190 |
|
*/ |
191 |
|
public function onConstantExpression(IType $type, $value) |
192 |
|
{ |
193 |
|
if (is_bool($value)) { |
194 |
|
return var_export($value, true); |
195 |
|
} elseif (is_null($value)) { |
196 |
|
return var_export(null, true); |
197 |
|
} |
198 |
|
|
199 |
|
return $value; |
200 |
|
} |
201 |
|
|
202 |
|
/** |
203 |
|
* Call-back for property access expression. |
src/POData/Providers/Expression/PHPExpressionProvider.php 1 location
|
@@ 200-209 (lines=10) @@
|
197 |
|
* |
198 |
|
* @return string |
199 |
|
*/ |
200 |
|
public function onConstantExpression(IType $type, $value) |
201 |
|
{ |
202 |
|
if (is_bool($value)) { |
203 |
|
return var_export($value, true); |
204 |
|
} elseif (is_null($value)) { |
205 |
|
return var_export(null, true); |
206 |
|
} |
207 |
|
|
208 |
|
return $value; |
209 |
|
} |
210 |
|
|
211 |
|
/** |
212 |
|
* Call-back for property access expression. |