<?php
 
 
 

namespace PhpWA\Protocol\Proto\BotFeedbackMessage;

use UnexpectedValueException;




class BotFeedbackKind
{
    


    const BOT_FEEDBACK_POSITIVE = 0;
    


    const BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
    


    const BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
    


    const BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
    


    const BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
    


    const BOT_FEEDBACK_NEGATIVE_SAFE = 5;
    


    const BOT_FEEDBACK_NEGATIVE_OTHER = 6;
    


    const BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
    


    const BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
    


    const BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
    


    const BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
    


    const BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
    


    const BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
    


    const BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
    


    const BOT_FEEDBACK_NEGATIVE = 14;

    private static $valueToName = [
        self::BOT_FEEDBACK_POSITIVE => 'BOT_FEEDBACK_POSITIVE',
        self::BOT_FEEDBACK_NEGATIVE_GENERIC => 'BOT_FEEDBACK_NEGATIVE_GENERIC',
        self::BOT_FEEDBACK_NEGATIVE_HELPFUL => 'BOT_FEEDBACK_NEGATIVE_HELPFUL',
        self::BOT_FEEDBACK_NEGATIVE_INTERESTING => 'BOT_FEEDBACK_NEGATIVE_INTERESTING',
        self::BOT_FEEDBACK_NEGATIVE_ACCURATE => 'BOT_FEEDBACK_NEGATIVE_ACCURATE',
        self::BOT_FEEDBACK_NEGATIVE_SAFE => 'BOT_FEEDBACK_NEGATIVE_SAFE',
        self::BOT_FEEDBACK_NEGATIVE_OTHER => 'BOT_FEEDBACK_NEGATIVE_OTHER',
        self::BOT_FEEDBACK_NEGATIVE_REFUSED => 'BOT_FEEDBACK_NEGATIVE_REFUSED',
        self::BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING => 'BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING',
        self::BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT => 'BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT',
        self::BOT_FEEDBACK_NEGATIVE_PERSONALIZED => 'BOT_FEEDBACK_NEGATIVE_PERSONALIZED',
        self::BOT_FEEDBACK_NEGATIVE_CLARITY => 'BOT_FEEDBACK_NEGATIVE_CLARITY',
        self::BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON => 'BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON',
        self::BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY => 'BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY',
        self::BOT_FEEDBACK_NEGATIVE => 'BOT_FEEDBACK_NEGATIVE',
    ];

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

