<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: analyticsStartup.proto

namespace Rv\Analytics\Startup\Output;

use UnexpectedValueException;

/**
 * Protobuf type <code>rv.analytics.startup.Output.OutputType</code>
 */
class OutputType
{
    /**
     * Generated from protobuf enum <code>OUTPUT_TYPE_UNKNOWN = 0;</code>
     */
    const OUTPUT_TYPE_UNKNOWN = 0;
    /**
     * Generated from protobuf enum <code>SDI = 1;</code>
     */
    const SDI = 1;
    /**
     * Generated from protobuf enum <code>NDI = 2;</code>
     */
    const NDI = 2;
    /**
     * Generated from protobuf enum <code>SYPHON = 3;</code>
     */
    const SYPHON = 3;
    /**
     * Generated from protobuf enum <code>SYSTEM = 4;</code>
     */
    const SYSTEM = 4;
    /**
     * Generated from protobuf enum <code>PLACEHOLDER = 5;</code>
     */
    const PLACEHOLDER = 5;
    /**
     * Generated from protobuf enum <code>DVI = 6;</code>
     */
    const DVI = 6;

    private static $valueToName = [
        self::OUTPUT_TYPE_UNKNOWN => 'OUTPUT_TYPE_UNKNOWN',
        self::SDI => 'SDI',
        self::NDI => 'NDI',
        self::SYPHON => 'SYPHON',
        self::SYSTEM => 'SYSTEM',
        self::PLACEHOLDER => 'PLACEHOLDER',
        self::DVI => 'DVI',
    ];

    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);
    }
}

