...

Text file src/github.com/google/flatbuffers/tests/MyGame/Example/Any.php

Documentation: github.com/google/flatbuffers/tests/MyGame/Example

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

View as plain text