<?php

namespace EnumType;

/**
 * This class stands for JPSOAP_ApplicationRuleQuotation EnumType
 * @subpackage Enumerations
 */
class JPSOAP_ApplicationRuleQuotation
{
    /**
     * Constant for value 'BasePrice'
     * @return string 'BasePrice'
     */
    const VALUE_BASE_PRICE = 'BasePrice';
    /**
     * Constant for value 'MealRoomSupplement'
     * @return string 'MealRoomSupplement'
     */
    const VALUE_MEAL_ROOM_SUPPLEMENT = 'MealRoomSupplement';
    /**
     * Constant for value 'SupplementsOffers'
     * @return string 'SupplementsOffers'
     */
    const VALUE_SUPPLEMENTS_OFFERS = 'SupplementsOffers';
    /**
     * 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_BASE_PRICE
     * @uses self::VALUE_MEAL_ROOM_SUPPLEMENT
     * @uses self::VALUE_SUPPLEMENTS_OFFERS
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_BASE_PRICE,
            self::VALUE_MEAL_ROOM_SUPPLEMENT,
            self::VALUE_SUPPLEMENTS_OFFERS,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
