<?php
/**
 * This class stands for XKeepAliveTimeInterval EnumType
 * @subpackage Enumerations
 */
class XKeepAliveTimeInterval
{
    /**
     * Constant for value '0'
     * @return string '0'
     */
    const VALUE_0 = '0';
    /**
     * Constant for value '5'
     * @return string '5'
     */
    const VALUE_5 = '5';
    /**
     * Constant for value '10'
     * @return string '10'
     */
    const VALUE_10 = '10';
    /**
     * Constant for value '15'
     * @return string '15'
     */
    const VALUE_15 = '15';
    /**
     * Constant for value '20'
     * @return string '20'
     */
    const VALUE_20 = '20';
    /**
     * Constant for value '25'
     * @return string '25'
     */
    const VALUE_25 = '25';
    /**
     * Constant for value '30'
     * @return string '30'
     */
    const VALUE_30 = '30';
    /**
     * 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
     * @uses self::VALUE_5
     * @uses self::VALUE_10
     * @uses self::VALUE_15
     * @uses self::VALUE_20
     * @uses self::VALUE_25
     * @uses self::VALUE_30
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_0,
            self::VALUE_5,
            self::VALUE_10,
            self::VALUE_15,
            self::VALUE_20,
            self::VALUE_25,
            self::VALUE_30,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
