aboutsummaryrefslogtreecommitdiff
path: root/tests/MyGame/Example/Any.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/MyGame/Example/Any.php')
-rw-r--r--tests/MyGame/Example/Any.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/MyGame/Example/Any.php b/tests/MyGame/Example/Any.php
new file mode 100644
index 00000000..d35bfd63
--- /dev/null
+++ b/tests/MyGame/Example/Any.php
@@ -0,0 +1,25 @@
+<?php
+// automatically generated, do not modify
+
+namespace MyGame\Example;
+
+class Any
+{
+ const NONE = 0;
+ const Monster = 1;
+ const TestSimpleTableWithEnum = 2;
+
+ private static $names = array(
+ "NONE",
+ "Monster",
+ "TestSimpleTableWithEnum",
+ );
+
+ public static function Name($e)
+ {
+ if (!isset(self::$names[$e])) {
+ throw new \Exception();
+ }
+ return self::$names[$e];
+ }
+}