rv.analytics.trigger.cue.SlideScrollingTextElement.Speed
*/
class Speed
{
/**
* Generated from protobuf enum SPEED_UNKNOWN = 0;
*/
const SPEED_UNKNOWN = 0;
/**
* Generated from protobuf enum VERY_SLOW = 1;
*/
const VERY_SLOW = 1;
/**
* Generated from protobuf enum SLOW = 2;
*/
const SLOW = 2;
/**
* Generated from protobuf enum MEDIUM = 3;
*/
const MEDIUM = 3;
/**
* Generated from protobuf enum FAST = 4;
*/
const FAST = 4;
/**
* Generated from protobuf enum VERY_FAST = 5;
*/
const VERY_FAST = 5;
private static $valueToName = [
self::SPEED_UNKNOWN => 'SPEED_UNKNOWN',
self::VERY_SLOW => 'VERY_SLOW',
self::SLOW => 'SLOW',
self::MEDIUM => 'MEDIUM',
self::FAST => 'FAST',
self::VERY_FAST => 'VERY_FAST',
];
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);
}
}