mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 20:15:34 +00:00
* Add codegen test for namespaced unions * [Rust] Handle cross-namespace union use * [Rust] Test namespace handling * [Rust] Drop trailing whitespace in codegen * [Rust] Set flags in generate_code.bat to match .sh * [C#] Add additional namespace test file
24 lines
499 B
PHP
24 lines
499 B
PHP
<?php
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
namespace NamespaceA\NamespaceB;
|
|
|
|
class UnionInNestedNS
|
|
{
|
|
const NONE = 0;
|
|
const TableInNestedNS = 1;
|
|
|
|
private static $names = array(
|
|
UnionInNestedNS::NONE=>"NONE",
|
|
UnionInNestedNS::TableInNestedNS=>"TableInNestedNS",
|
|
);
|
|
|
|
public static function Name($e)
|
|
{
|
|
if (!isset(self::$names[$e])) {
|
|
throw new \Exception();
|
|
}
|
|
return self::$names[$e];
|
|
}
|
|
}
|