<?php
/**
 * This class stands for XCSUParam EnumType
 * @subpackage Enumerations
 */
class XCSUParam
{
    /**
     * Constant for value '0dB'
     * @return string '0dB'
     */
    const VALUE_0_D_B = '0dB';
    /**
     * Constant for value '-7.5dB'
     * @return string '-7.5dB'
     */
    const VALUE_7_5_D_B = '-7.5dB';
    /**
     * Constant for value '-15dB'
     * @return string '-15dB'
     */
    const VALUE_15_D_B = '-15dB';
    /**
     * Constant for value '-22.5dB'
     * @return string '-22.5dB'
     */
    const VALUE_22_5_D_B = '-22.5dB';
    /**
     * 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_0_D_B
     * @uses self::VALUE_7_5_D_B
     * @uses self::VALUE_15_D_B
     * @uses self::VALUE_22_5_D_B
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_0_D_B,
            self::VALUE_7_5_D_B,
            self::VALUE_15_D_B,
            self::VALUE_22_5_D_B,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
