<?php

namespace EnumType;

/**
 * This class stands for JPSOAP_SupplementType EnumType
 * @subpackage Enumerations
 */
class JPSOAP_SupplementType
{
    /**
     * Constant for value 'Basic'
     * @return string 'Basic'
     */
    const VALUE_BASIC = 'Basic';
    /**
     * Constant for value 'ShortStay'
     * @return string 'ShortStay'
     */
    const VALUE_SHORT_STAY = 'ShortStay';
    /**
     * Constant for value 'PickUpPoint'
     * @return string 'PickUpPoint'
     */
    const VALUE_PICK_UP_POINT = 'PickUpPoint';
    /**
     * Constant for value 'MealPlan'
     * @return string 'MealPlan'
     */
    const VALUE_MEAL_PLAN = 'MealPlan';
    /**
     * Constant for value 'RoomPlan'
     * @return string 'RoomPlan'
     */
    const VALUE_ROOM_PLAN = 'RoomPlan';
    /**
     * Constant for value 'IndividualUse'
     * @return string 'IndividualUse'
     */
    const VALUE_INDIVIDUAL_USE = 'IndividualUse';
    /**
     * 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_BASIC
     * @uses self::VALUE_SHORT_STAY
     * @uses self::VALUE_PICK_UP_POINT
     * @uses self::VALUE_MEAL_PLAN
     * @uses self::VALUE_ROOM_PLAN
     * @uses self::VALUE_INDIVIDUAL_USE
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_BASIC,
            self::VALUE_SHORT_STAY,
            self::VALUE_PICK_UP_POINT,
            self::VALUE_MEAL_PLAN,
            self::VALUE_ROOM_PLAN,
            self::VALUE_INDIVIDUAL_USE,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
