• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?php
2// automatically generated by the FlatBuffers compiler, do not modify
3
4namespace MyGame\Example;
5
6class Color
7{
8    const Red = 1;
9    const Green = 2;
10    const Blue = 8;
11
12    private static $names = array(
13        Color::Red=>"Red",
14        Color::Green=>"Green",
15        Color::Blue=>"Blue",
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}
26