| @@ 204-213 (lines=10) @@ | ||
| 201 | * |
|
| 202 | * @return string |
|
| 203 | */ |
|
| 204 | public function onConstantExpression(IType $type, $value) |
|
| 205 | { |
|
| 206 | if (is_bool($value)) { |
|
| 207 | return var_export($value, true); |
|
| 208 | } else if (is_null($value)) { |
|
| 209 | return var_export(null, true); |
|
| 210 | } |
|
| 211 | ||
| 212 | return $value; |
|
| 213 | } |
|
| 214 | ||
| 215 | /** |
|
| 216 | * Call-back for property access expression |
|
| @@ 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 | } else if (is_null($value)) { |
|
| 205 | return var_export(null, true); |
|
| 206 | } |
|
| 207 | ||
| 208 | return $value; |
|
| 209 | } |
|
| 210 | ||
| 211 | /** |
|
| 212 | * Call-back for property access expression |
|
| @@ 196-205 (lines=10) @@ | ||
| 193 | * |
|
| 194 | * @return string |
|
| 195 | */ |
|
| 196 | public function onConstantExpression(IType $type, $value) |
|
| 197 | { |
|
| 198 | if (is_bool($value)) { |
|
| 199 | return var_export($value, true); |
|
| 200 | } else if (is_null($value)) { |
|
| 201 | return var_export(null, true); |
|
| 202 | } |
|
| 203 | ||
| 204 | return $value; |
|
| 205 | } |
|
| 206 | ||
| 207 | /** |
|
| 208 | * Call-back for property access expression |
|
| @@ 206-215 (lines=10) @@ | ||
| 203 | * |
|
| 204 | * @return string |
|
| 205 | */ |
|
| 206 | public function onConstantExpression(IType $type, $value) |
|
| 207 | { |
|
| 208 | if (is_bool($value)) { |
|
| 209 | return var_export($value, true); |
|
| 210 | } else if (is_null($value)) { |
|
| 211 | return var_export(null, true); |
|
| 212 | } |
|
| 213 | ||
| 214 | return $value; |
|
| 215 | } |
|
| 216 | ||
| 217 | /** |
|
| 218 | * Call-back for property access expression |
|