public static function export_method_annotation(ClassDef $def, Method $method) { return '$GLOBALS[\'__PHPX_ANNOTATIONS__\'][\'' . $def->get_qualified_name() . ':' . $method->get_name() . '\'] = ' . var_export($method->get_annotation(), true) . ';'; }