Debian Codegraph @

tests/namespace_test/NamespaceA/NamespaceB/EnumInNestedNS.php

raw
1 <?php
2 // automatically generated by the FlatBuffers compiler, do not modify
3
4 namespace NamespaceA\NamespaceB;
5
6 class EnumInNestedNS
7 {
8 const A = 0;
9 const B = 1;
10 const C = 2;
11
12 private static $names = array(
13 EnumInNestedNS::A=>"A",
14 EnumInNestedNS::B=>"B",
15 EnumInNestedNS::C=>"C",
16 );
17
18 public static function Name($e)
19 {
20 if (!isset(self::$names[$e])) {
21 throw new \Exception();
22 }
23 return self::$names[$e];
24 }
25 }