<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for TrafficValue StructType
 * @subpackage Structs
 */
abstract class TrafficValue extends BasicDataValue
{
    /**
     * The forVehiclesWithCharacteristicsOf
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\VehicleCharacteristics
     */
    public $forVehiclesWithCharacteristicsOf;
    /**
     * The trafficValueExtension
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ExtensionType
     */
    public $trafficValueExtension;
    /**
     * Constructor method for TrafficValue
     * @uses TrafficValue::setForVehiclesWithCharacteristicsOf()
     * @uses TrafficValue::setTrafficValueExtension()
     * @param \StructType\VehicleCharacteristics $forVehiclesWithCharacteristicsOf
     * @param \StructType\ExtensionType $trafficValueExtension
     */
    public function __construct(\StructType\VehicleCharacteristics $forVehiclesWithCharacteristicsOf = null, \StructType\ExtensionType $trafficValueExtension = null)
    {
        $this
            ->setForVehiclesWithCharacteristicsOf($forVehiclesWithCharacteristicsOf)
            ->setTrafficValueExtension($trafficValueExtension);
    }
    /**
     * Get forVehiclesWithCharacteristicsOf value
     * @return \StructType\VehicleCharacteristics|null
     */
    public function getForVehiclesWithCharacteristicsOf()
    {
        return $this->forVehiclesWithCharacteristicsOf;
    }
    /**
     * Set forVehiclesWithCharacteristicsOf value
     * @param \StructType\VehicleCharacteristics $forVehiclesWithCharacteristicsOf
     * @return \StructType\TrafficValue
     */
    public function setForVehiclesWithCharacteristicsOf(\StructType\VehicleCharacteristics $forVehiclesWithCharacteristicsOf = null)
    {
        $this->forVehiclesWithCharacteristicsOf = $forVehiclesWithCharacteristicsOf;
        return $this;
    }
    /**
     * Get trafficValueExtension value
     * @return \StructType\ExtensionType|null
     */
    public function getTrafficValueExtension()
    {
        return $this->trafficValueExtension;
    }
    /**
     * Set trafficValueExtension value
     * @param \StructType\ExtensionType $trafficValueExtension
     * @return \StructType\TrafficValue
     */
    public function setTrafficValueExtension(\StructType\ExtensionType $trafficValueExtension = null)
    {
        $this->trafficValueExtension = $trafficValueExtension;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \StructType\TrafficValue
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
