<?php

namespace CustomerManagement\EnumType;

/**
 * This class stands for ScheduledServiceDateStatus EnumType
 * @subpackage Enumerations
 */
class ScheduledServiceDateStatus
{
    /**
     * Constant for value 'Scheduled'
     * @return string 'Scheduled'
     */
    const VALUE_SCHEDULED = 'Scheduled';
    /**
     * Constant for value 'Cancelled'
     * @return string 'Cancelled'
     */
    const VALUE_CANCELLED = 'Cancelled';
    /**
     * Constant for value 'Completed'
     * @return string 'Completed'
     */
    const VALUE_COMPLETED = 'Completed';
    /**
     * Constant for value 'AutoClosed'
     * @return string 'AutoClosed'
     */
    const VALUE_AUTO_CLOSED = 'AutoClosed';
    /**
     * 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_SCHEDULED
     * @uses self::VALUE_CANCELLED
     * @uses self::VALUE_COMPLETED
     * @uses self::VALUE_AUTO_CLOSED
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_SCHEDULED,
            self::VALUE_CANCELLED,
            self::VALUE_COMPLETED,
            self::VALUE_AUTO_CLOSED,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
