rv.analytics.trigger.TestPattern.Pattern */ class Pattern { /** * Generated from protobuf enum AUDIO_VIDEO_SYNC = 0; */ const AUDIO_VIDEO_SYNC = 0; /** * Generated from protobuf enum BLEND_GRID = 1; */ const BLEND_GRID = 1; /** * Generated from protobuf enum COLOR_BARS = 2; */ const COLOR_BARS = 2; /** * Generated from protobuf enum CUSTOM_COLORS = 3; */ const CUSTOM_COLORS = 3; /** * Generated from protobuf enum FOCUS = 4; */ const FOCUS = 4; /** * Generated from protobuf enum GRAY_SCALE = 5; */ const GRAY_SCALE = 5; /** * Generated from protobuf enum LINES = 6; */ const LINES = 6; /** * Generated from protobuf enum LOGO_BOUNCE = 7; */ const LOGO_BOUNCE = 7; /** * Generated from protobuf enum RADAR = 8; */ const RADAR = 8; /** * Generated from protobuf enum TEXT = 9; */ const TEXT = 9; private static $valueToName = [ self::AUDIO_VIDEO_SYNC => 'AUDIO_VIDEO_SYNC', self::BLEND_GRID => 'BLEND_GRID', self::COLOR_BARS => 'COLOR_BARS', self::CUSTOM_COLORS => 'CUSTOM_COLORS', self::FOCUS => 'FOCUS', self::GRAY_SCALE => 'GRAY_SCALE', self::LINES => 'LINES', self::LOGO_BOUNCE => 'LOGO_BOUNCE', self::RADAR => 'RADAR', self::TEXT => 'TEXT', ]; 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); } }