<?php
/**
 * This class stands for XGClear EnumType
 * @subpackage Enumerations
 */
class XGClear
{
    /**
     * Constant for value 'Disabled'
     * @return string 'Disabled'
     */
    const VALUE_DISABLED = 'Disabled';
    /**
     * Constant for value 'CLEARMODE'
     * @return string 'CLEARMODE'
     */
    const VALUE_CLEARMODE = 'CLEARMODE';
    /**
     * Constant for value 'CCD'
     * @return string 'CCD'
     */
    const VALUE_CCD = 'CCD';
    /**
     * Constant for value 'G.nX64'
     * @return string 'G.nX64'
     */
    const VALUE_G_N_X_64 = 'G.nX64';
    /**
     * Constant for value 'X-CCD'
     * @return string 'X-CCD'
     */
    const VALUE_X_CCD = 'X-CCD';
    /**
     * 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_DISABLED
     * @uses self::VALUE_CLEARMODE
     * @uses self::VALUE_CCD
     * @uses self::VALUE_G_N_X_64
     * @uses self::VALUE_X_CCD
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_DISABLED,
            self::VALUE_CLEARMODE,
            self::VALUE_CCD,
            self::VALUE_G_N_X_64,
            self::VALUE_X_CCD,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
