<?php
 
 
 

namespace PhpWA\Protocol\Proto\MessageAssociation;

use UnexpectedValueException;




class AssociationType
{
    


    const UNKNOWN = 0;
    


    const MEDIA_ALBUM = 1;
    


    const BOT_PLUGIN = 2;
    


    const EVENT_COVER_IMAGE = 3;
    


    const STATUS_POLL = 4;
    


    const HD_VIDEO_DUAL_UPLOAD = 5;
    


    const STATUS_EXTERNAL_RESHARE = 6;
    


    const MEDIA_POLL = 7;
    


    const STATUS_ADD_YOURS = 8;
    


    const STATUS_NOTIFICATION = 9;
    


    const HD_IMAGE_DUAL_UPLOAD = 10;
    


    const STICKER_ANNOTATION = 11;
    


    const MOTION_PHOTO = 12;
    


    const STATUS_LINK_ACTION = 13;
    


    const VIEW_ALL_REPLIES = 14;
    


    const STATUS_ADD_YOURS_AI_IMAGINE = 15;
    


    const STATUS_QUESTION = 16;
    


    const STATUS_ADD_YOURS_DIWALI = 17;
    


    const STATUS_REACTION = 18;
    


    const HEVC_VIDEO_DUAL_UPLOAD = 19;

    private static $valueToName = [
        self::UNKNOWN => 'UNKNOWN',
        self::MEDIA_ALBUM => 'MEDIA_ALBUM',
        self::BOT_PLUGIN => 'BOT_PLUGIN',
        self::EVENT_COVER_IMAGE => 'EVENT_COVER_IMAGE',
        self::STATUS_POLL => 'STATUS_POLL',
        self::HD_VIDEO_DUAL_UPLOAD => 'HD_VIDEO_DUAL_UPLOAD',
        self::STATUS_EXTERNAL_RESHARE => 'STATUS_EXTERNAL_RESHARE',
        self::MEDIA_POLL => 'MEDIA_POLL',
        self::STATUS_ADD_YOURS => 'STATUS_ADD_YOURS',
        self::STATUS_NOTIFICATION => 'STATUS_NOTIFICATION',
        self::HD_IMAGE_DUAL_UPLOAD => 'HD_IMAGE_DUAL_UPLOAD',
        self::STICKER_ANNOTATION => 'STICKER_ANNOTATION',
        self::MOTION_PHOTO => 'MOTION_PHOTO',
        self::STATUS_LINK_ACTION => 'STATUS_LINK_ACTION',
        self::VIEW_ALL_REPLIES => 'VIEW_ALL_REPLIES',
        self::STATUS_ADD_YOURS_AI_IMAGINE => 'STATUS_ADD_YOURS_AI_IMAGINE',
        self::STATUS_QUESTION => 'STATUS_QUESTION',
        self::STATUS_ADD_YOURS_DIWALI => 'STATUS_ADD_YOURS_DIWALI',
        self::STATUS_REACTION => 'STATUS_REACTION',
        self::HEVC_VIDEO_DUAL_UPLOAD => 'HEVC_VIDEO_DUAL_UPLOAD',
    ];

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

