<?php
/**
 * This class stands for XZzdtmfDbLevel EnumType
 * @subpackage Enumerations
 */
class XZzdtmfDbLevel
{
    /**
     * Constant for value '6 dB below nominal'
     * @return string '6 dB below nominal'
     */
    const VALUE_6_D_B_BELOW_NOMINAL = '6 dB below nominal';
    /**
     * Constant for value '3 dB below nominal'
     * @return string '3 dB below nominal'
     */
    const VALUE_3_D_B_BELOW_NOMINAL = '3 dB below nominal';
    /**
     * Constant for value 'Nominal'
     * @return string 'Nominal'
     */
    const VALUE_NOMINAL = 'Nominal';
    /**
     * Constant for value '3 dB above nominal'
     * @return string '3 dB above nominal'
     */
    const VALUE_3_D_B_ABOVE_NOMINAL = '3 dB above nominal';
    /**
     * Constant for value '6 dB above nominal'
     * @return string '6 dB above nominal'
     */
    const VALUE_6_D_B_ABOVE_NOMINAL = '6 dB above nominal';
    /**
     * 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_6_D_B_BELOW_NOMINAL
     * @uses self::VALUE_3_D_B_BELOW_NOMINAL
     * @uses self::VALUE_NOMINAL
     * @uses self::VALUE_3_D_B_ABOVE_NOMINAL
     * @uses self::VALUE_6_D_B_ABOVE_NOMINAL
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_6_D_B_BELOW_NOMINAL,
            self::VALUE_3_D_B_BELOW_NOMINAL,
            self::VALUE_NOMINAL,
            self::VALUE_3_D_B_ABOVE_NOMINAL,
            self::VALUE_6_D_B_ABOVE_NOMINAL,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
