<?php
/**
 * This class stands for XWiFiFrequency EnumType
 * @subpackage Enumerations
 */
class XWiFiFrequency
{
    /**
     * Constant for value 'Auto'
     * @return string 'Auto'
     */
    const VALUE_AUTO = 'Auto';
    /**
     * Constant for value '2.4 GHz'
     * @return string '2.4 GHz'
     */
    const VALUE_2_4_GHZ = '2.4 GHz';
    /**
     * Constant for value '5 GHz'
     * @return string '5 GHz'
     */
    const VALUE_5_GHZ = '5 GHz';
    /**
     * 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_AUTO
     * @uses self::VALUE_2_4_GHZ
     * @uses self::VALUE_5_GHZ
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_AUTO,
            self::VALUE_2_4_GHZ,
            self::VALUE_5_GHZ,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
