<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for RoadsideReferencePointLinear StructType
 * @subpackage Structs
 */
class RoadsideReferencePointLinear extends AbstractStructBase
{
    /**
     * The roadsideReferencePointPrimaryLocation
     * @var \StructType\RoadsideReferencePointPrimaryLocation
     */
    public $roadsideReferencePointPrimaryLocation;
    /**
     * The roadsideReferencePointSecondaryLocation
     * @var \StructType\RoadsideReferencePointSecondaryLocation
     */
    public $roadsideReferencePointSecondaryLocation;
    /**
     * The roadsideReferencePointLinearExtension
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ExtensionType
     */
    public $roadsideReferencePointLinearExtension;
    /**
     * Constructor method for RoadsideReferencePointLinear
     * @uses RoadsideReferencePointLinear::setRoadsideReferencePointPrimaryLocation()
     * @uses RoadsideReferencePointLinear::setRoadsideReferencePointSecondaryLocation()
     * @uses RoadsideReferencePointLinear::setRoadsideReferencePointLinearExtension()
     * @param \StructType\RoadsideReferencePointPrimaryLocation $roadsideReferencePointPrimaryLocation
     * @param \StructType\RoadsideReferencePointSecondaryLocation $roadsideReferencePointSecondaryLocation
     * @param \StructType\ExtensionType $roadsideReferencePointLinearExtension
     */
    public function __construct(\StructType\RoadsideReferencePointPrimaryLocation $roadsideReferencePointPrimaryLocation = null, \StructType\RoadsideReferencePointSecondaryLocation $roadsideReferencePointSecondaryLocation = null, \StructType\ExtensionType $roadsideReferencePointLinearExtension = null)
    {
        $this
            ->setRoadsideReferencePointPrimaryLocation($roadsideReferencePointPrimaryLocation)
            ->setRoadsideReferencePointSecondaryLocation($roadsideReferencePointSecondaryLocation)
            ->setRoadsideReferencePointLinearExtension($roadsideReferencePointLinearExtension);
    }
    /**
     * Get roadsideReferencePointPrimaryLocation value
     * @return \StructType\RoadsideReferencePointPrimaryLocation|null
     */
    public function getRoadsideReferencePointPrimaryLocation()
    {
        return $this->roadsideReferencePointPrimaryLocation;
    }
    /**
     * Set roadsideReferencePointPrimaryLocation value
     * @param \StructType\RoadsideReferencePointPrimaryLocation $roadsideReferencePointPrimaryLocation
     * @return \StructType\RoadsideReferencePointLinear
     */
    public function setRoadsideReferencePointPrimaryLocation(\StructType\RoadsideReferencePointPrimaryLocation $roadsideReferencePointPrimaryLocation = null)
    {
        $this->roadsideReferencePointPrimaryLocation = $roadsideReferencePointPrimaryLocation;
        return $this;
    }
    /**
     * Get roadsideReferencePointSecondaryLocation value
     * @return \StructType\RoadsideReferencePointSecondaryLocation|null
     */
    public function getRoadsideReferencePointSecondaryLocation()
    {
        return $this->roadsideReferencePointSecondaryLocation;
    }
    /**
     * Set roadsideReferencePointSecondaryLocation value
     * @param \StructType\RoadsideReferencePointSecondaryLocation $roadsideReferencePointSecondaryLocation
     * @return \StructType\RoadsideReferencePointLinear
     */
    public function setRoadsideReferencePointSecondaryLocation(\StructType\RoadsideReferencePointSecondaryLocation $roadsideReferencePointSecondaryLocation = null)
    {
        $this->roadsideReferencePointSecondaryLocation = $roadsideReferencePointSecondaryLocation;
        return $this;
    }
    /**
     * Get roadsideReferencePointLinearExtension value
     * @return \StructType\ExtensionType|null
     */
    public function getRoadsideReferencePointLinearExtension()
    {
        return $this->roadsideReferencePointLinearExtension;
    }
    /**
     * Set roadsideReferencePointLinearExtension value
     * @param \StructType\ExtensionType $roadsideReferencePointLinearExtension
     * @return \StructType\RoadsideReferencePointLinear
     */
    public function setRoadsideReferencePointLinearExtension(\StructType\ExtensionType $roadsideReferencePointLinearExtension = null)
    {
        $this->roadsideReferencePointLinearExtension = $roadsideReferencePointLinearExtension;
        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\RoadsideReferencePointLinear
     */
    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__;
    }
}
