1<?hh // strict 2/** 3 * Autogenerated by Thrift 4 * 5 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 6 * @generated 7 */ 8 9namespace test\fixtures\hackenumtyping; 10 11/** 12 * Original thrift enum:- 13 * MyEnum 14 */ 15enum MyEnum: int as int { 16 MyValue1 = 0; 17 MyValue2 = 1; 18} 19type MyEnumType = MyEnum; 20 21class MyEnum_TEnumStaticMetadata implements \IThriftEnumStaticMetadata { 22 public static function getEnumMetadata()[]: \tmeta_ThriftEnum { 23 return \tmeta_ThriftEnum::fromShape( 24 shape( 25 "name" => "module.MyEnum", 26 "elements" => dict[ 27 0 => "MyValue1", 28 1 => "MyValue2", 29 ], 30 ) 31 ); 32 } 33 34 public static function getAllStructuredAnnotations()[]: \TEnumAnnotations { 35 return shape( 36 'enum' => dict[], 37 'constants' => dict[ 38 ], 39 ); 40 } 41} 42 43