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

namespace Rv\Data\Graphics\Text\Attributes\Paragraph\TextList;

use UnexpectedValueException;

/**
 * Protobuf type <code>rv.data.Graphics.Text.Attributes.Paragraph.TextList.NumberType</code>
 */
class NumberType
{
    /**
     * Generated from protobuf enum <code>NUMBER_TYPE_BOX = 0;</code>
     */
    const NUMBER_TYPE_BOX = 0;
    /**
     * Generated from protobuf enum <code>NUMBER_TYPE_CHECK = 1;</code>
     */
    const NUMBER_TYPE_CHECK = 1;
    /**
     * Generated from protobuf enum <code>NUMBER_TYPE_CIRCLE = 2;</code>
     */
    const NUMBER_TYPE_CIRCLE = 2;
    /**
     * Generated from protobuf enum <code>NUMBER_TYPE_DIAMOND = 3;</code>
     */
    const NUMBER_TYPE_DIAMOND = 3;
    /**
     * Generated from protobuf enum <code>NUMBER_TYPE_DISC = 4;</code>
     */
    const NUMBER_TYPE_DISC = 4;
    /**
     * Generated from protobuf enum <code>NUMBER_TYPE_HYPHEN = 5;</code>
     */
    const NUMBER_TYPE_HYPHEN = 5;
    /**
     * Generated from protobuf enum <code>NUMBER_TYPE_SQUARE = 6;</code>
     */
    const NUMBER_TYPE_SQUARE = 6;
    /**
     * Generated from protobuf enum <code>NUMBER_TYPE_DECIMAL = 7;</code>
     */
    const NUMBER_TYPE_DECIMAL = 7;
    /**
     * Generated from protobuf enum <code>NUMBER_TYPE_LOWERCASE_ALPHA = 8;</code>
     */
    const NUMBER_TYPE_LOWERCASE_ALPHA = 8;
    /**
     * Generated from protobuf enum <code>NUMBER_TYPE_UPPERCASE_ALPHA = 9;</code>
     */
    const NUMBER_TYPE_UPPERCASE_ALPHA = 9;
    /**
     * Generated from protobuf enum <code>NUMBER_TYPE_LOWERCASE_ROMAN = 10;</code>
     */
    const NUMBER_TYPE_LOWERCASE_ROMAN = 10;
    /**
     * Generated from protobuf enum <code>NUMBER_TYPE_UPPERCASE_ROMAN = 11;</code>
     */
    const NUMBER_TYPE_UPPERCASE_ROMAN = 11;

    private static $valueToName = [
        self::NUMBER_TYPE_BOX => 'NUMBER_TYPE_BOX',
        self::NUMBER_TYPE_CHECK => 'NUMBER_TYPE_CHECK',
        self::NUMBER_TYPE_CIRCLE => 'NUMBER_TYPE_CIRCLE',
        self::NUMBER_TYPE_DIAMOND => 'NUMBER_TYPE_DIAMOND',
        self::NUMBER_TYPE_DISC => 'NUMBER_TYPE_DISC',
        self::NUMBER_TYPE_HYPHEN => 'NUMBER_TYPE_HYPHEN',
        self::NUMBER_TYPE_SQUARE => 'NUMBER_TYPE_SQUARE',
        self::NUMBER_TYPE_DECIMAL => 'NUMBER_TYPE_DECIMAL',
        self::NUMBER_TYPE_LOWERCASE_ALPHA => 'NUMBER_TYPE_LOWERCASE_ALPHA',
        self::NUMBER_TYPE_UPPERCASE_ALPHA => 'NUMBER_TYPE_UPPERCASE_ALPHA',
        self::NUMBER_TYPE_LOWERCASE_ROMAN => 'NUMBER_TYPE_LOWERCASE_ROMAN',
        self::NUMBER_TYPE_UPPERCASE_ROMAN => 'NUMBER_TYPE_UPPERCASE_ROMAN',
    ];

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

