<?php

namespace EnumType;

/**
 * This class stands for TramSubmodesOfTransportEnumeration EnumType
 * Meta informations extracted from the WSDL
 * - documentation: Values for Tram ModesOfTransport: TPEG pti_table_06, loc_table_12.
 * @subpackage Enumerations
 */
class TramSubmodesOfTransportEnumeration
{
    /**
     * Constant for value 'pti6_0'
     * @return string 'pti6_0'
     */
    const VALUE_PTI_6_0 = 'pti6_0';
    /**
     * Constant for value 'loc12_0'
     * @return string 'loc12_0'
     */
    const VALUE_LOC_12_0 = 'loc12_0';
    /**
     * Constant for value 'unknown'
     * @return string 'unknown'
     */
    const VALUE_UNKNOWN = 'unknown';
    /**
     * Constant for value 'pti6_1'
     * @return string 'pti6_1'
     */
    const VALUE_PTI_6_1 = 'pti6_1';
    /**
     * Constant for value 'loc12_1'
     * @return string 'loc12_1'
     */
    const VALUE_LOC_12_1 = 'loc12_1';
    /**
     * Constant for value 'cityTram'
     * @return string 'cityTram'
     */
    const VALUE_CITY_TRAM = 'cityTram';
    /**
     * Constant for value 'pti6_2'
     * @return string 'pti6_2'
     */
    const VALUE_PTI_6_2 = 'pti6_2';
    /**
     * Constant for value 'localTramService'
     * @return string 'localTramService'
     */
    const VALUE_LOCAL_TRAM_SERVICE = 'localTramService';
    /**
     * Constant for value 'pti6_3'
     * @return string 'pti6_3'
     */
    const VALUE_PTI_6_3 = 'pti6_3';
    /**
     * Constant for value 'regionalTram'
     * @return string 'regionalTram'
     */
    const VALUE_REGIONAL_TRAM = 'regionalTram';
    /**
     * Constant for value 'pti6_4'
     * @return string 'pti6_4'
     */
    const VALUE_PTI_6_4 = 'pti6_4';
    /**
     * Constant for value 'loc12_2'
     * @return string 'loc12_2'
     */
    const VALUE_LOC_12_2 = 'loc12_2';
    /**
     * Constant for value 'sightseeingTram'
     * @return string 'sightseeingTram'
     */
    const VALUE_SIGHTSEEING_TRAM = 'sightseeingTram';
    /**
     * Constant for value 'pti6_5'
     * @return string 'pti6_5'
     */
    const VALUE_PTI_6_5 = 'pti6_5';
    /**
     * Constant for value 'shuttleTram'
     * @return string 'shuttleTram'
     */
    const VALUE_SHUTTLE_TRAM = 'shuttleTram';
    /**
     * Constant for value 'pti6_6'
     * @return string 'pti6_6'
     */
    const VALUE_PTI_6_6 = 'pti6_6';
    /**
     * Constant for value 'allTramServices'
     * @return string 'allTramServices'
     */
    const VALUE_ALL_TRAM_SERVICES = 'allTramServices';
    /**
     * Constant for value 'pti6_255'
     * @return string 'pti6_255'
     */
    const VALUE_PTI_6_255 = 'pti6_255';
    /**
     * Constant for value 'loc12_255'
     * @return string 'loc12_255'
     */
    const VALUE_LOC_12_255 = 'loc12_255';
    /**
     * Constant for value 'undefinedTramService'
     * @return string 'undefinedTramService'
     */
    const VALUE_UNDEFINED_TRAM_SERVICE = 'undefinedTramService';
    /**
     * 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_PTI_6_0
     * @uses self::VALUE_LOC_12_0
     * @uses self::VALUE_UNKNOWN
     * @uses self::VALUE_PTI_6_1
     * @uses self::VALUE_LOC_12_1
     * @uses self::VALUE_CITY_TRAM
     * @uses self::VALUE_PTI_6_2
     * @uses self::VALUE_LOCAL_TRAM_SERVICE
     * @uses self::VALUE_PTI_6_3
     * @uses self::VALUE_REGIONAL_TRAM
     * @uses self::VALUE_PTI_6_4
     * @uses self::VALUE_LOC_12_2
     * @uses self::VALUE_SIGHTSEEING_TRAM
     * @uses self::VALUE_PTI_6_5
     * @uses self::VALUE_SHUTTLE_TRAM
     * @uses self::VALUE_PTI_6_6
     * @uses self::VALUE_ALL_TRAM_SERVICES
     * @uses self::VALUE_PTI_6_255
     * @uses self::VALUE_LOC_12_255
     * @uses self::VALUE_UNDEFINED_TRAM_SERVICE
     * @return string[]
     */
    public static function getValidValues()
    {
        return array(
            self::VALUE_PTI_6_0,
            self::VALUE_LOC_12_0,
            self::VALUE_UNKNOWN,
            self::VALUE_PTI_6_1,
            self::VALUE_LOC_12_1,
            self::VALUE_CITY_TRAM,
            self::VALUE_PTI_6_2,
            self::VALUE_LOCAL_TRAM_SERVICE,
            self::VALUE_PTI_6_3,
            self::VALUE_REGIONAL_TRAM,
            self::VALUE_PTI_6_4,
            self::VALUE_LOC_12_2,
            self::VALUE_SIGHTSEEING_TRAM,
            self::VALUE_PTI_6_5,
            self::VALUE_SHUTTLE_TRAM,
            self::VALUE_PTI_6_6,
            self::VALUE_ALL_TRAM_SERVICES,
            self::VALUE_PTI_6_255,
            self::VALUE_LOC_12_255,
            self::VALUE_UNDEFINED_TRAM_SERVICE,
        );
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
