<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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