<?php
/**
 * This class stands for XV150SDPFilter EnumType
 * @subpackage Enumerations
 */
class XV150SDPFilter
{
    /**
     * Constant for value 'No Filtering'
     * @return string 'No Filtering'
     */
    const VALUE_NO_FILTERING = 'No Filtering';
    /**
     * Constant for value 'Remove MER V.150'
     * @return string 'Remove MER V.150'
     */
    const VALUE_REMOVE_MER_V_150 = 'Remove MER V.150';
    /**
     * Constant for value 'Remove Pre-MER V.150'
     * @return string 'Remove Pre-MER V.150'
     */
    const VALUE_REMOVE_PRE_MER_V_150 = 'Remove Pre-MER V.150';
    /**
     * Constant for value 'Use Default Filter'
     * @return string 'Use Default Filter'
     */
    const VALUE_USE_DEFAULT_FILTER = 'Use Default Filter';
    /**
     * 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_NO_FILTERING
     * @uses self::VALUE_REMOVE_MER_V_150
     * @uses self::VALUE_REMOVE_PRE_MER_V_150
     * @uses self::VALUE_USE_DEFAULT_FILTER
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_NO_FILTERING,
            self::VALUE_REMOVE_MER_V_150,
            self::VALUE_REMOVE_PRE_MER_V_150,
            self::VALUE_USE_DEFAULT_FILTER,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
