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