Tadah.AssetType
*/
class AssetType
{
/**
* Generated from protobuf enum CLOTHING = 0;
*/
const CLOTHING = 0;
/**
* Generated from protobuf enum HEAD = 1;
*/
const HEAD = 1;
/**
* Generated from protobuf enum MESH = 2;
*/
const MESH = 2;
/**
* Generated from protobuf enum PLACE = 3;
*/
const PLACE = 3;
/**
* Generated from protobuf enum USER = 4;
*/
const USER = 4;
/**
* Generated from protobuf enum HEADSHOT = 5;
*/
const HEADSHOT = 5;
/**
* Generated from protobuf enum XML = 6;
*/
const XML = 6;
private static $valueToName = [
self::CLOTHING => 'CLOTHING',
self::HEAD => 'HEAD',
self::MESH => 'MESH',
self::PLACE => 'PLACE',
self::USER => 'USER',
self::HEADSHOT => 'HEADSHOT',
self::XML => 'XML',
];
public static function name($value)
{
if (!isset(self::$valueToName[$value])) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no name defined for value %s', __CLASS__, $value));
}
return self::$valueToName[$value];
}
public static function value($name)
{
$const = __CLASS__ . '::' . strtoupper($name);
if (!defined($const)) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no value defined for name %s', __CLASS__, $name));
}
return constant($const);
}
}