<?php
/**
 * This class stands for XPriProtocol EnumType
 * @subpackage Enumerations
 */
class XPriProtocol
{
    /**
     * Constant for value 'PRI 4ESS'
     * @return string 'PRI 4ESS'
     */
    const VALUE_PRI_4_ESS = 'PRI 4ESS';
    /**
     * Constant for value 'PRI 5E8'
     * @return string 'PRI 5E8'
     */
    const VALUE_PRI_5_E_8 = 'PRI 5E8';
    /**
     * Constant for value 'PRI 5E8 TELEOS'
     * @return string 'PRI 5E8 TELEOS'
     */
    const VALUE_PRI_5_E_8_TELEOS = 'PRI 5E8 TELEOS';
    /**
     * Constant for value 'PRI 5E8 INTECOME'
     * @return string 'PRI 5E8 INTECOME'
     */
    const VALUE_PRI_5_E_8_INTECOME = 'PRI 5E8 INTECOME';
    /**
     * Constant for value 'PRI 5E9'
     * @return string 'PRI 5E9'
     */
    const VALUE_PRI_5_E_9 = 'PRI 5E9';
    /**
     * Constant for value 'PRI DMS-100'
     * @return string 'PRI DMS-100'
     */
    const VALUE_PRI_DMS_100 = 'PRI DMS-100';
    /**
     * Constant for value 'PRI DMS-250'
     * @return string 'PRI DMS-250'
     */
    const VALUE_PRI_DMS_250 = 'PRI DMS-250';
    /**
     * Constant for value 'PRI EURO'
     * @return string 'PRI EURO'
     */
    const VALUE_PRI_EURO = 'PRI EURO';
    /**
     * Constant for value 'PRI NI2'
     * @return string 'PRI NI2'
     */
    const VALUE_PRI_NI_2 = 'PRI NI2';
    /**
     * Constant for value 'PRI AUSTRALIAN'
     * @return string 'PRI AUSTRALIAN'
     */
    const VALUE_PRI_AUSTRALIAN = 'PRI AUSTRALIAN';
    /**
     * Constant for value 'PRI 5E8 CUSTOM'
     * @return string 'PRI 5E8 CUSTOM'
     */
    const VALUE_PRI_5_E_8_CUSTOM = 'PRI 5E8 CUSTOM';
    /**
     * Constant for value 'PRI ETSI SC'
     * @return string 'PRI ETSI SC'
     */
    const VALUE_PRI_ETSI_SC = 'PRI ETSI SC';
    /**
     * Constant for value 'PRI NTT'
     * @return string 'PRI NTT'
     */
    const VALUE_PRI_NTT = 'PRI NTT';
    /**
     * Constant for value 'PRI ISO QSIG T1'
     * @return string 'PRI ISO QSIG T1'
     */
    const VALUE_PRI_ISO_QSIG_T_1 = 'PRI ISO QSIG T1';
    /**
     * Constant for value 'PRI ISO QSIG E1'
     * @return string 'PRI ISO QSIG E1'
     */
    const VALUE_PRI_ISO_QSIG_E_1 = 'PRI ISO QSIG E1';
    /**
     * Return true if value is allowed
     * @uses self::getValidValues()
     * @param mixed $value value
     * @return bool true|false
     */
    public static function valueIsValid($value)
    {
        return ($value === null) || in_array($value, self::getValidValues(), true);
    }
    /**
     * Return allowed values
     * @uses self::VALUE_PRI_4_ESS
     * @uses self::VALUE_PRI_5_E_8
     * @uses self::VALUE_PRI_5_E_8_TELEOS
     * @uses self::VALUE_PRI_5_E_8_INTECOME
     * @uses self::VALUE_PRI_5_E_9
     * @uses self::VALUE_PRI_DMS_100
     * @uses self::VALUE_PRI_DMS_250
     * @uses self::VALUE_PRI_EURO
     * @uses self::VALUE_PRI_NI_2
     * @uses self::VALUE_PRI_AUSTRALIAN
     * @uses self::VALUE_PRI_5_E_8_CUSTOM
     * @uses self::VALUE_PRI_ETSI_SC
     * @uses self::VALUE_PRI_NTT
     * @uses self::VALUE_PRI_ISO_QSIG_T_1
     * @uses self::VALUE_PRI_ISO_QSIG_E_1
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_PRI_4_ESS,
            self::VALUE_PRI_5_E_8,
            self::VALUE_PRI_5_E_8_TELEOS,
            self::VALUE_PRI_5_E_8_INTECOME,
            self::VALUE_PRI_5_E_9,
            self::VALUE_PRI_DMS_100,
            self::VALUE_PRI_DMS_250,
            self::VALUE_PRI_EURO,
            self::VALUE_PRI_NI_2,
            self::VALUE_PRI_AUSTRALIAN,
            self::VALUE_PRI_5_E_8_CUSTOM,
            self::VALUE_PRI_ETSI_SC,
            self::VALUE_PRI_NTT,
            self::VALUE_PRI_ISO_QSIG_T_1,
            self::VALUE_PRI_ISO_QSIG_E_1,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
