Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame^] | 1 | <?php |
| 2 | // automatically generated by the FlatBuffers compiler, do not modify |
| 3 | |
| 4 | class Character |
| 5 | { |
| 6 | const NONE = 0; |
| 7 | const MuLan = 1; |
| 8 | const Rapunzel = 2; |
| 9 | const Belle = 3; |
| 10 | const BookFan = 4; |
| 11 | const Other = 5; |
| 12 | const Unused = 6; |
| 13 | |
| 14 | private static $names = array( |
| 15 | Character::NONE=>"NONE", |
| 16 | Character::MuLan=>"MuLan", |
| 17 | Character::Rapunzel=>"Rapunzel", |
| 18 | Character::Belle=>"Belle", |
| 19 | Character::BookFan=>"BookFan", |
| 20 | Character::Other=>"Other", |
| 21 | Character::Unused=>"Unused", |
| 22 | ); |
| 23 | |
| 24 | public static function Name($e) |
| 25 | { |
| 26 | if (!isset(self::$names[$e])) { |
| 27 | throw new \Exception(); |
| 28 | } |
| 29 | return self::$names[$e]; |
| 30 | } |
| 31 | } |