xref: /aosp_15_r20/external/flatbuffers/tests/union_vector/Gadget.php (revision 890232f25432b36107d06881e0a25aaa6b473652)
1<?php
2// automatically generated by the FlatBuffers compiler, do not modify
3
4class Gadget
5{
6    const NONE = 0;
7    const FallingTub = 1;
8    const HandFan = 2;
9
10    private static $names = array(
11        Gadget::NONE=>"NONE",
12        Gadget::FallingTub=>"FallingTub",
13        Gadget::HandFan=>"HandFan",
14    );
15
16    public static function Name($e)
17    {
18        if (!isset(self::$names[$e])) {
19            throw new \Exception();
20        }
21        return self::$names[$e];
22    }
23}
24