<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for RoadSurfaceConditionInformation StructType
 * @subpackage Structs
 */
class RoadSurfaceConditionInformation extends WeatherValue
{
    /**
     * The roadSurfaceConditionMeasurements
     * @var \StructType\RoadSurfaceConditionMeasurements
     */
    public $roadSurfaceConditionMeasurements;
    /**
     * The roadSurfaceConditionInformationExtension
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ExtensionType
     */
    public $roadSurfaceConditionInformationExtension;
    /**
     * Constructor method for RoadSurfaceConditionInformation
     * @uses RoadSurfaceConditionInformation::setRoadSurfaceConditionMeasurements()
     * @uses RoadSurfaceConditionInformation::setRoadSurfaceConditionInformationExtension()
     * @param \StructType\RoadSurfaceConditionMeasurements $roadSurfaceConditionMeasurements
     * @param \StructType\ExtensionType $roadSurfaceConditionInformationExtension
     */
    public function __construct(\StructType\RoadSurfaceConditionMeasurements $roadSurfaceConditionMeasurements = null, \StructType\ExtensionType $roadSurfaceConditionInformationExtension = null)
    {
        $this
            ->setRoadSurfaceConditionMeasurements($roadSurfaceConditionMeasurements)
            ->setRoadSurfaceConditionInformationExtension($roadSurfaceConditionInformationExtension);
    }
    /**
     * Get roadSurfaceConditionMeasurements value
     * @return \StructType\RoadSurfaceConditionMeasurements|null
     */
    public function getRoadSurfaceConditionMeasurements()
    {
        return $this->roadSurfaceConditionMeasurements;
    }
    /**
     * Set roadSurfaceConditionMeasurements value
     * @param \StructType\RoadSurfaceConditionMeasurements $roadSurfaceConditionMeasurements
     * @return \StructType\RoadSurfaceConditionInformation
     */
    public function setRoadSurfaceConditionMeasurements(\StructType\RoadSurfaceConditionMeasurements $roadSurfaceConditionMeasurements = null)
    {
        $this->roadSurfaceConditionMeasurements = $roadSurfaceConditionMeasurements;
        return $this;
    }
    /**
     * Get roadSurfaceConditionInformationExtension value
     * @return \StructType\ExtensionType|null
     */
    public function getRoadSurfaceConditionInformationExtension()
    {
        return $this->roadSurfaceConditionInformationExtension;
    }
    /**
     * Set roadSurfaceConditionInformationExtension value
     * @param \StructType\ExtensionType $roadSurfaceConditionInformationExtension
     * @return \StructType\RoadSurfaceConditionInformation
     */
    public function setRoadSurfaceConditionInformationExtension(\StructType\ExtensionType $roadSurfaceConditionInformationExtension = null)
    {
        $this->roadSurfaceConditionInformationExtension = $roadSurfaceConditionInformationExtension;
        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\RoadSurfaceConditionInformation
     */
    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__;
    }
}
