<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for RoadsideReferencePointSecondaryLocation StructType
 * @subpackage Structs
 */
class RoadsideReferencePointSecondaryLocation extends AbstractStructBase
{
    /**
     * The roadsideReferencePoint
     * @var \StructType\RoadsideReferencePoint
     */
    public $roadsideReferencePoint;
    /**
     * The roadsideReferencePointSecondaryLocationExtension
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ExtensionType
     */
    public $roadsideReferencePointSecondaryLocationExtension;
    /**
     * Constructor method for RoadsideReferencePointSecondaryLocation
     * @uses RoadsideReferencePointSecondaryLocation::setRoadsideReferencePoint()
     * @uses RoadsideReferencePointSecondaryLocation::setRoadsideReferencePointSecondaryLocationExtension()
     * @param \StructType\RoadsideReferencePoint $roadsideReferencePoint
     * @param \StructType\ExtensionType $roadsideReferencePointSecondaryLocationExtension
     */
    public function __construct(\StructType\RoadsideReferencePoint $roadsideReferencePoint = null, \StructType\ExtensionType $roadsideReferencePointSecondaryLocationExtension = null)
    {
        $this
            ->setRoadsideReferencePoint($roadsideReferencePoint)
            ->setRoadsideReferencePointSecondaryLocationExtension($roadsideReferencePointSecondaryLocationExtension);
    }
    /**
     * Get roadsideReferencePoint value
     * @return \StructType\RoadsideReferencePoint|null
     */
    public function getRoadsideReferencePoint()
    {
        return $this->roadsideReferencePoint;
    }
    /**
     * Set roadsideReferencePoint value
     * @param \StructType\RoadsideReferencePoint $roadsideReferencePoint
     * @return \StructType\RoadsideReferencePointSecondaryLocation
     */
    public function setRoadsideReferencePoint(\StructType\RoadsideReferencePoint $roadsideReferencePoint = null)
    {
        $this->roadsideReferencePoint = $roadsideReferencePoint;
        return $this;
    }
    /**
     * Get roadsideReferencePointSecondaryLocationExtension value
     * @return \StructType\ExtensionType|null
     */
    public function getRoadsideReferencePointSecondaryLocationExtension()
    {
        return $this->roadsideReferencePointSecondaryLocationExtension;
    }
    /**
     * Set roadsideReferencePointSecondaryLocationExtension value
     * @param \StructType\ExtensionType $roadsideReferencePointSecondaryLocationExtension
     * @return \StructType\RoadsideReferencePointSecondaryLocation
     */
    public function setRoadsideReferencePointSecondaryLocationExtension(\StructType\ExtensionType $roadsideReferencePointSecondaryLocationExtension = null)
    {
        $this->roadsideReferencePointSecondaryLocationExtension = $roadsideReferencePointSecondaryLocationExtension;
        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\RoadsideReferencePointSecondaryLocation
     */
    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__;
    }
}
