mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
* Eclipse ignore * TypeScript support * Prefixing enums * Test results * Merged JS and TS generators * Fixed AppVeyor build problems * Fixed more AppVeyor build problems * Fixed more AppVeyor build problems * Changed TS flag to options struct * Storing options by value * Removed unneeded const * Re-export support for unions * Uint support * Casting bools to numbers for mutation * TS shell tests * Reverted generates js test file to original version * Backing up js tests and properly generating test data * Not importing flatbuffers for TS test generation * Not overwriting generated js for tests * AppVeyor test fixes * Generating the most strict TS code possible * Not returning null when creating vectors * Not returning null from struct contructors * Vector of unions for ts/js * Sanity check for languages * Indentation fix + output test files * Vectors of unions for php * Fixes to union vector handling + tests
34 lines
597 B
PHP
34 lines
597 B
PHP
<?php
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
namespace ;
|
|
|
|
class Character
|
|
{
|
|
const NONE = 0;
|
|
const MuLan = 1;
|
|
const Rapunzel = 2;
|
|
const Belle = 3;
|
|
const BookFan = 4;
|
|
const Other = 5;
|
|
const Unused = 6;
|
|
|
|
private static $names = array(
|
|
"NONE",
|
|
"MuLan",
|
|
"Rapunzel",
|
|
"Belle",
|
|
"BookFan",
|
|
"Other",
|
|
"Unused",
|
|
);
|
|
|
|
public static function Name($e)
|
|
{
|
|
if (!isset(self::$names[$e])) {
|
|
throw new \Exception();
|
|
}
|
|
return self::$names[$e];
|
|
}
|
|
}
|