<?php
/**
 * This class stands for XNumberingPlan EnumType
 * @subpackage Enumerations
 */
class XNumberingPlan
{
    /**
     * Constant for value 'Cisco CallManager'
     * @return string 'Cisco CallManager'
     */
    const VALUE_CISCO_CALL_MANAGER = 'Cisco CallManager';
    /**
     * Constant for value 'ISDN'
     * @return string 'ISDN'
     */
    const VALUE_ISDN = 'ISDN';
    /**
     * Constant for value 'National Standard'
     * @return string 'National Standard'
     */
    const VALUE_NATIONAL_STANDARD = 'National Standard';
    /**
     * Constant for value 'Private'
     * @return string 'Private'
     */
    const VALUE_PRIVATE = 'Private';
    /**
     * Constant for value 'Unknown'
     * @return string 'Unknown'
     */
    const VALUE_UNKNOWN = 'Unknown';
    /**
     * 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_CISCO_CALL_MANAGER
     * @uses self::VALUE_ISDN
     * @uses self::VALUE_NATIONAL_STANDARD
     * @uses self::VALUE_PRIVATE
     * @uses self::VALUE_UNKNOWN
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_CISCO_CALL_MANAGER,
            self::VALUE_ISDN,
            self::VALUE_NATIONAL_STANDARD,
            self::VALUE_PRIVATE,
            self::VALUE_UNKNOWN,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
