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

namespace Rv\Analytics\UI\MainView\Bible\GenerateSlides;

use UnexpectedValueException;

/**
 * Protobuf type <code>rv.analytics.UI.MainView.Bible.GenerateSlides.TextBoxLocation</code>
 */
class TextBoxLocation
{
    /**
     * Generated from protobuf enum <code>TEXT_BOX_LOCATION_UNKNOWN = 0;</code>
     */
    const TEXT_BOX_LOCATION_UNKNOWN = 0;
    /**
     * Generated from protobuf enum <code>TEXT_BOX_LOCATION_NONE = 1;</code>
     */
    const TEXT_BOX_LOCATION_NONE = 1;
    /**
     * Generated from protobuf enum <code>TEXT_BOX_LOCATION_TEXT_BOX = 2;</code>
     */
    const TEXT_BOX_LOCATION_TEXT_BOX = 2;
    /**
     * Generated from protobuf enum <code>TEXT_BOX_LOCATION_WITH_VERSE = 3;</code>
     */
    const TEXT_BOX_LOCATION_WITH_VERSE = 3;

    private static $valueToName = [
        self::TEXT_BOX_LOCATION_UNKNOWN => 'TEXT_BOX_LOCATION_UNKNOWN',
        self::TEXT_BOX_LOCATION_NONE => 'TEXT_BOX_LOCATION_NONE',
        self::TEXT_BOX_LOCATION_TEXT_BOX => 'TEXT_BOX_LOCATION_TEXT_BOX',
        self::TEXT_BOX_LOCATION_WITH_VERSE => 'TEXT_BOX_LOCATION_WITH_VERSE',
    ];

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

