<?php

namespace CustomerManagement\EnumType;

/**
 * This class stands for RRIReportStatusEnum EnumType
 * @subpackage Enumerations
 */
class RRIReportStatusEnum
{
    /**
     * Constant for value 'NotFound'
     * @return string 'NotFound'
     */
    const VALUE_NOT_FOUND = 'NotFound';
    /**
     * Constant for value 'Pending'
     * @return string 'Pending'
     */
    const VALUE_PENDING = 'Pending';
    /**
     * Constant for value 'Failed'
     * @return string 'Failed'
     */
    const VALUE_FAILED = 'Failed';
    /**
     * Constant for value 'SystemIsBusy'
     * @return string 'SystemIsBusy'
     */
    const VALUE_SYSTEM_IS_BUSY = 'SystemIsBusy';
    /**
     * Constant for value 'BadInputValue'
     * @return string 'BadInputValue'
     */
    const VALUE_BAD_INPUT_VALUE = 'BadInputValue';
    /**
     * Constant for value 'Complete'
     * @return string 'Complete'
     */
    const VALUE_COMPLETE = 'Complete';
    /**
     * 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_FOUND
     * @uses self::VALUE_PENDING
     * @uses self::VALUE_FAILED
     * @uses self::VALUE_SYSTEM_IS_BUSY
     * @uses self::VALUE_BAD_INPUT_VALUE
     * @uses self::VALUE_COMPLETE
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_NOT_FOUND,
            self::VALUE_PENDING,
            self::VALUE_FAILED,
            self::VALUE_SYSTEM_IS_BUSY,
            self::VALUE_BAD_INPUT_VALUE,
            self::VALUE_COMPLETE,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
