mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
26 lines
481 B
PHP
26 lines
481 B
PHP
<?php
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
namespace MyGame\Example;
|
|
|
|
class Any
|
|
{
|
|
const NONE = 0;
|
|
const Monster = 1;
|
|
const TestSimpleTableWithEnum = 2;
|
|
|
|
private static $names = array(
|
|
"NONE",
|
|
"Monster",
|
|
"TestSimpleTableWithEnum",
|
|
);
|
|
|
|
public static function Name($e)
|
|
{
|
|
if (!isset(self::$names[$e])) {
|
|
throw new \Exception();
|
|
}
|
|
return self::$names[$e];
|
|
}
|
|
}
|