<?php

namespace dgsoft\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for OriginDestinationInformationType StructType
 * @package Dg
 * @subpackage Structs
 */
class DgOriginDestinationInformationType extends DgTravelDateTimeType
{
    /**
     * The OriginLocation
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgOriginLocation
     */
    public $OriginLocation;
    /**
     * The DestinationLocation
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgDestinationLocation
     */
    public $DestinationLocation;
    /**
     * The OriginLocationList
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\ArrayType\DgArrayOfOriginDestinationInformationTypeOriginLocation
     */
    public $OriginLocationList;
    /**
     * The DestinationLocationList
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\ArrayType\DgArrayOfOriginDestinationInformationTypeDestinationLocation
     */
    public $DestinationLocationList;
    /**
     * The ConnectionLocations
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\ArrayType\DgArrayOfConnectionTypeConnectionLocation
     */
    public $ConnectionLocations;
    /**
     * The RadiusInformation
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgRadiusItem
     */
    public $RadiusInformation;
    /**
     * Constructor method for OriginDestinationInformationType
     * @uses DgOriginDestinationInformationType::setOriginLocation()
     * @uses DgOriginDestinationInformationType::setDestinationLocation()
     * @uses DgOriginDestinationInformationType::setOriginLocationList()
     * @uses DgOriginDestinationInformationType::setDestinationLocationList()
     * @uses DgOriginDestinationInformationType::setConnectionLocations()
     * @uses DgOriginDestinationInformationType::setRadiusInformation()
     * @param \dgsoft\StructType\DgOriginLocation $originLocation
     * @param \dgsoft\StructType\DgDestinationLocation $destinationLocation
     * @param \dgsoft\ArrayType\DgArrayOfOriginDestinationInformationTypeOriginLocation $originLocationList
     * @param \dgsoft\ArrayType\DgArrayOfOriginDestinationInformationTypeDestinationLocation $destinationLocationList
     * @param \dgsoft\ArrayType\DgArrayOfConnectionTypeConnectionLocation $connectionLocations
     * @param \dgsoft\StructType\DgRadiusItem $radiusInformation
     */
    public function __construct(\dgsoft\StructType\DgOriginLocation $originLocation = null, \dgsoft\StructType\DgDestinationLocation $destinationLocation = null, \dgsoft\ArrayType\DgArrayOfOriginDestinationInformationTypeOriginLocation $originLocationList = null, \dgsoft\ArrayType\DgArrayOfOriginDestinationInformationTypeDestinationLocation $destinationLocationList = null, \dgsoft\ArrayType\DgArrayOfConnectionTypeConnectionLocation $connectionLocations = null, \dgsoft\StructType\DgRadiusItem $radiusInformation = null)
    {
        $this
            ->setOriginLocation($originLocation)
            ->setDestinationLocation($destinationLocation)
            ->setOriginLocationList($originLocationList)
            ->setDestinationLocationList($destinationLocationList)
            ->setConnectionLocations($connectionLocations)
            ->setRadiusInformation($radiusInformation);
    }
    /**
     * Get OriginLocation value
     * @return \dgsoft\StructType\DgOriginLocation|null
     */
    public function getOriginLocation()
    {
        return $this->OriginLocation;
    }
    /**
     * Set OriginLocation value
     * @param \dgsoft\StructType\DgOriginLocation $originLocation
     * @return \dgsoft\StructType\DgOriginDestinationInformationType
     */
    public function setOriginLocation(\dgsoft\StructType\DgOriginLocation $originLocation = null)
    {
        $this->OriginLocation = $originLocation;
        return $this;
    }
    /**
     * Get DestinationLocation value
     * @return \dgsoft\StructType\DgDestinationLocation|null
     */
    public function getDestinationLocation()
    {
        return $this->DestinationLocation;
    }
    /**
     * Set DestinationLocation value
     * @param \dgsoft\StructType\DgDestinationLocation $destinationLocation
     * @return \dgsoft\StructType\DgOriginDestinationInformationType
     */
    public function setDestinationLocation(\dgsoft\StructType\DgDestinationLocation $destinationLocation = null)
    {
        $this->DestinationLocation = $destinationLocation;
        return $this;
    }
    /**
     * Get OriginLocationList value
     * @return \dgsoft\ArrayType\DgArrayOfOriginDestinationInformationTypeOriginLocation|null
     */
    public function getOriginLocationList()
    {
        return $this->OriginLocationList;
    }
    /**
     * Set OriginLocationList value
     * @param \dgsoft\ArrayType\DgArrayOfOriginDestinationInformationTypeOriginLocation $originLocationList
     * @return \dgsoft\StructType\DgOriginDestinationInformationType
     */
    public function setOriginLocationList(\dgsoft\ArrayType\DgArrayOfOriginDestinationInformationTypeOriginLocation $originLocationList = null)
    {
        $this->OriginLocationList = $originLocationList;
        return $this;
    }
    /**
     * Get DestinationLocationList value
     * @return \dgsoft\ArrayType\DgArrayOfOriginDestinationInformationTypeDestinationLocation|null
     */
    public function getDestinationLocationList()
    {
        return $this->DestinationLocationList;
    }
    /**
     * Set DestinationLocationList value
     * @param \dgsoft\ArrayType\DgArrayOfOriginDestinationInformationTypeDestinationLocation $destinationLocationList
     * @return \dgsoft\StructType\DgOriginDestinationInformationType
     */
    public function setDestinationLocationList(\dgsoft\ArrayType\DgArrayOfOriginDestinationInformationTypeDestinationLocation $destinationLocationList = null)
    {
        $this->DestinationLocationList = $destinationLocationList;
        return $this;
    }
    /**
     * Get ConnectionLocations value
     * @return \dgsoft\ArrayType\DgArrayOfConnectionTypeConnectionLocation|null
     */
    public function getConnectionLocations()
    {
        return $this->ConnectionLocations;
    }
    /**
     * Set ConnectionLocations value
     * @param \dgsoft\ArrayType\DgArrayOfConnectionTypeConnectionLocation $connectionLocations
     * @return \dgsoft\StructType\DgOriginDestinationInformationType
     */
    public function setConnectionLocations(\dgsoft\ArrayType\DgArrayOfConnectionTypeConnectionLocation $connectionLocations = null)
    {
        $this->ConnectionLocations = $connectionLocations;
        return $this;
    }
    /**
     * Get RadiusInformation value
     * @return \dgsoft\StructType\DgRadiusItem|null
     */
    public function getRadiusInformation()
    {
        return $this->RadiusInformation;
    }
    /**
     * Set RadiusInformation value
     * @param \dgsoft\StructType\DgRadiusItem $radiusInformation
     * @return \dgsoft\StructType\DgOriginDestinationInformationType
     */
    public function setRadiusInformation(\dgsoft\StructType\DgRadiusItem $radiusInformation = null)
    {
        $this->RadiusInformation = $radiusInformation;
        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 \dgsoft\StructType\DgOriginDestinationInformationType
     */
    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__;
    }
}
