summaryrefslogtreecommitdiff
path: root/tests/MyGame/Example/AnyAmbiguousAliases.php
blob: 13d318a06d65bd7a0ecbd81c8b201156bb297389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
// automatically generated by the FlatBuffers compiler, do not modify

namespace MyGame\Example;

class AnyAmbiguousAliases
{
    const NONE = 0;
    const M1 = 1;
    const M2 = 2;
    const M3 = 3;

    private static $names = array(
        AnyAmbiguousAliases::NONE=>"NONE",
        AnyAmbiguousAliases::M1=>"M1",
        AnyAmbiguousAliases::M2=>"M2",
        AnyAmbiguousAliases::M3=>"M3",
    );

    public static function Name($e)
    {
        if (!isset(self::$names[$e])) {
            throw new \Exception();
        }
        return self::$names[$e];
    }
}