<?php
/**
 * This class stands for XFDLChannel EnumType
 * @subpackage Enumerations
 */
class XFDLChannel
{
    /**
     * Constant for value 'AT&T 54016'
     * @return string 'AT&T 54016'
     */
    const VALUE_AT_T_54016 = 'AT&T 54016';
    /**
     * Constant for value 'ANSI T1.403 NI'
     * @return string 'ANSI T1.403 NI'
     */
    const VALUE_ANSI_T_1_403_NI = 'ANSI T1.403 NI';
    /**
     * Constant for value 'ANSI T1.403.CI'
     * @return string 'ANSI T1.403.CI'
     */
    const VALUE_ANSI_T_1_403_CI = 'ANSI T1.403.CI';
    /**
     * Constant for value 'None'
     * @return string 'None'
     */
    const VALUE_NONE = 'None';
    /**
     * 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_AT_T_54016
     * @uses self::VALUE_ANSI_T_1_403_NI
     * @uses self::VALUE_ANSI_T_1_403_CI
     * @uses self::VALUE_NONE
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_AT_T_54016,
            self::VALUE_ANSI_T_1_403_NI,
            self::VALUE_ANSI_T_1_403_CI,
            self::VALUE_NONE,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
