Debian Codegraph @

tests/MyGame/Example/Race.php

raw symbols SCIP
1 <?php
2 // automatically generated by the FlatBuffers compiler, do not modify
3
4 namespace MyGame\Example;
5
6 class Race
7 {
8 const None = -1;
9 const Human = 0;
10 const Dwarf = 1;
11 const Elf = 2;
12
13 private static $names = array(
14 Race::None=>"None",
15 Race::Human=>"Human",
16 Race::Dwarf=>"Dwarf",
17 Race::Elf=>"Elf",
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 }