Zephir\ClassDefinition::_convertPhpConstantType PHP Method

_convertPhpConstantType() private static method

private static _convertPhpConstantType ( $phpType )
    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];
    }