...

Text file src/github.com/google/flatbuffers/tests/union_vector/Character.php

Documentation: github.com/google/flatbuffers/tests/union_vector

     1<?php
     2// automatically generated by the FlatBuffers compiler, do not modify
     3
     4class Character
     5{
     6    const NONE = 0;
     7    const MuLan = 1;
     8    const Rapunzel = 2;
     9    const Belle = 3;
    10    const BookFan = 4;
    11    const Other = 5;
    12    const Unused = 6;
    13
    14    private static $names = array(
    15        Character::NONE=>"NONE",
    16        Character::MuLan=>"MuLan",
    17        Character::Rapunzel=>"Rapunzel",
    18        Character::Belle=>"Belle",
    19        Character::BookFan=>"BookFan",
    20        Character::Other=>"Other",
    21        Character::Unused=>"Unused",
    22    );
    23
    24    public static function Name($e)
    25    {
    26        if (!isset(self::$names[$e])) {
    27            throw new \Exception();
    28        }
    29        return self::$names[$e];
    30    }
    31}

View as plain text