<?php

namespace Sabre\OTAAirAvail\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for OTA_AirAvailRS Structs
 * @subpackage Structs
 */
class OTA_AirAvailRS extends AbstractStructBase
{
    /**
     * The ApplicationResults
     * Meta informations extracted from the WSDL
     * - ref: stl:ApplicationResults
     * @var \Sabre\OTAAirAvail\Structs\ApplicationResults
     */
    public $ApplicationResults;
    /**
     * The OriginDestinationOptions
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirAvail\Structs\OriginDestinationOptions
     */
    public $OriginDestinationOptions;
    /**
     * The Version
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $Version;
    /**
     * Constructor method for OTA_AirAvailRS
     * @uses OTA_AirAvailRS::setApplicationResults()
     * @uses OTA_AirAvailRS::setOriginDestinationOptions()
     * @uses OTA_AirAvailRS::setVersion()
     * @param \Sabre\OTAAirAvail\Structs\ApplicationResults $applicationResults
     * @param \Sabre\OTAAirAvail\Structs\OriginDestinationOptions $originDestinationOptions
     * @param string $version
     */
    public function __construct(\Sabre\OTAAirAvail\Structs\ApplicationResults $applicationResults = null, \Sabre\OTAAirAvail\Structs\OriginDestinationOptions $originDestinationOptions = null, $version = null)
    {
        $this
            ->setApplicationResults($applicationResults)
            ->setOriginDestinationOptions($originDestinationOptions)
            ->setVersion($version);
    }
    /**
     * Get ApplicationResults value
     * @return \Sabre\OTAAirAvail\Structs\ApplicationResults|null
     */
    public function getApplicationResults()
    {
        return $this->ApplicationResults;
    }
    /**
     * Set ApplicationResults value
     * @param \Sabre\OTAAirAvail\Structs\ApplicationResults $applicationResults
     * @return \Sabre\OTAAirAvail\Structs\OTA_AirAvailRS
     */
    public function setApplicationResults(\Sabre\OTAAirAvail\Structs\ApplicationResults $applicationResults = null)
    {
        $this->ApplicationResults = $applicationResults;
        return $this;
    }
    /**
     * Get OriginDestinationOptions value
     * @return \Sabre\OTAAirAvail\Structs\OriginDestinationOptions|null
     */
    public function getOriginDestinationOptions()
    {
        return $this->OriginDestinationOptions;
    }
    /**
     * Set OriginDestinationOptions value
     * @param \Sabre\OTAAirAvail\Structs\OriginDestinationOptions $originDestinationOptions
     * @return \Sabre\OTAAirAvail\Structs\OTA_AirAvailRS
     */
    public function setOriginDestinationOptions(\Sabre\OTAAirAvail\Structs\OriginDestinationOptions $originDestinationOptions = null)
    {
        $this->OriginDestinationOptions = $originDestinationOptions;
        return $this;
    }
    /**
     * Get Version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->Version;
    }
    /**
     * Set Version value
     * @param string $version
     * @return \Sabre\OTAAirAvail\Structs\OTA_AirAvailRS
     */
    public function setVersion($version = null)
    {
        $this->Version = $version;
        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 \Sabre\OTAAirAvail\Structs\OTA_AirAvailRS
     */
    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__;
    }
}
