<?php
 
 
 

namespace PhpWA\Protocol\Proto\BotFeedbackMessage;

use UnexpectedValueException;




class BotFeedbackKindMultipleNegative
{
    


    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_UNSPECIFIED = 0;
    


    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
    


    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
    


    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
    


    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
    


    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
    


    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
    


    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
    


    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
    


    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;

    private static $valueToName = [
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_UNSPECIFIED => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_UNSPECIFIED',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_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);
    }
}

