private static function _convertPhpConstantType($phpType)
{
$map = array('boolean' => 'bool', 'integer' => 'int', 'double' => 'double', 'string' => 'string', 'NULL' => 'null');
if (!isset($map[$phpType])) {
throw new CompilerException("Cannot parse constant type '{$phpType}'");
}
return $map[$phpType];
}