<?php

namespace Sabre\OTAAirPrice\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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