<?php
/**
 * This class stands for XASN1RoseOidEncoding EnumType
 * @subpackage Enumerations
 */
class XASN1RoseOidEncoding
{
    /**
     * Constant for value 'No Changes'
     * @return string 'No Changes'
     */
    const VALUE_NO_CHANGES = 'No Changes';
    /**
     * Constant for value 'Use Local Value'
     * @return string 'Use Local Value'
     */
    const VALUE_USE_LOCAL_VALUE = 'Use Local Value';
    /**
     * Constant for value 'Use Global Value ISO'
     * @return string 'Use Global Value ISO'
     */
    const VALUE_USE_GLOBAL_VALUE_ISO = 'Use Global Value ISO';
    /**
     * Constant for value 'Use Global Value ECMA'
     * @return string 'Use Global Value ECMA'
     */
    const VALUE_USE_GLOBAL_VALUE_ECMA = 'Use Global Value ECMA';
    /**
     * 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_CHANGES
     * @uses self::VALUE_USE_LOCAL_VALUE
     * @uses self::VALUE_USE_GLOBAL_VALUE_ISO
     * @uses self::VALUE_USE_GLOBAL_VALUE_ECMA
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_NO_CHANGES,
            self::VALUE_USE_LOCAL_VALUE,
            self::VALUE_USE_GLOBAL_VALUE_ISO,
            self::VALUE_USE_GLOBAL_VALUE_ECMA,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
