<?php

namespace CustomerManagement\EnumType;

/**
 * This class stands for TerminateModemOutput EnumType
 * @subpackage Enumerations
 */
class TerminateModemOutput
{
    /**
     * Constant for value 'NotSet'
     * @return string 'NotSet'
     */
    const VALUE_NOT_SET = 'NotSet';
    /**
     * Constant for value 'ModemNotFound'
     * @return string 'ModemNotFound'
     */
    const VALUE_MODEM_NOT_FOUND = 'ModemNotFound';
    /**
     * Constant for value 'AlreadyTerminated'
     * @return string 'AlreadyTerminated'
     */
    const VALUE_ALREADY_TERMINATED = 'AlreadyTerminated';
    /**
     * Constant for value 'AttachedToActiveCustomer'
     * @return string 'AttachedToActiveCustomer'
     */
    const VALUE_ATTACHED_TO_ACTIVE_CUSTOMER = 'AttachedToActiveCustomer';
    /**
     * Constant for value 'TerminationRequestSubmitted'
     * @return string 'TerminationRequestSubmitted'
     */
    const VALUE_TERMINATION_REQUEST_SUBMITTED = 'TerminationRequestSubmitted';
    /**
     * Constant for value 'ErrorTerminating'
     * @return string 'ErrorTerminating'
     */
    const VALUE_ERROR_TERMINATING = 'ErrorTerminating';
    /**
     * 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_NOT_SET
     * @uses self::VALUE_MODEM_NOT_FOUND
     * @uses self::VALUE_ALREADY_TERMINATED
     * @uses self::VALUE_ATTACHED_TO_ACTIVE_CUSTOMER
     * @uses self::VALUE_TERMINATION_REQUEST_SUBMITTED
     * @uses self::VALUE_ERROR_TERMINATING
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_NOT_SET,
            self::VALUE_MODEM_NOT_FOUND,
            self::VALUE_ALREADY_TERMINATED,
            self::VALUE_ATTACHED_TO_ACTIVE_CUSTOMER,
            self::VALUE_TERMINATION_REQUEST_SUBMITTED,
            self::VALUE_ERROR_TERMINATING,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
