xref: /aosp_15_r20/external/flatbuffers/tests/MyGame/Example/LongEnum.php (revision 890232f25432b36107d06881e0a25aaa6b473652)
1<?php
2// automatically generated by the FlatBuffers compiler, do not modify
3
4namespace MyGame\Example;
5
6class LongEnum
7{
8    const LongOne = 2;
9    const LongTwo = 4;
10    const LongBig = 1099511627776;
11
12    private static $names = array(
13        LongEnum::LongOne=>"LongOne",
14        LongEnum::LongTwo=>"LongTwo",
15        LongEnum::LongBig=>"LongBig",
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