<?php

namespace Sabre\OTAAirAvail\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for FlightQualifiers Structs
 * @subpackage Structs
 */
class FlightQualifiers extends AbstractStructBase
{
    /**
     * The AlliancePartner
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirAvail\Structs\AlliancePartner
     */
    public $AlliancePartner;
    /**
     * The Cabin
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirAvail\Structs\Cabin
     */
    public $Cabin;
    /**
     * The VendorPrefs
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirAvail\Structs\VendorPrefs
     */
    public $VendorPrefs;
    /**
     * The Charters
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var bool
     */
    public $Charters;
    /**
     * The DirectOnly
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var bool
     */
    public $DirectOnly;
    /**
     * The ExcludeCodeshares
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var bool
     */
    public $ExcludeCodeshares;
    /**
     * The OnlineOnly
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var bool
     */
    public $OnlineOnly;
    /**
     * The Scan
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var bool
     */
    public $Scan;
    /**
     * Constructor method for FlightQualifiers
     * @uses FlightQualifiers::setAlliancePartner()
     * @uses FlightQualifiers::setCabin()
     * @uses FlightQualifiers::setVendorPrefs()
     * @uses FlightQualifiers::setCharters()
     * @uses FlightQualifiers::setDirectOnly()
     * @uses FlightQualifiers::setExcludeCodeshares()
     * @uses FlightQualifiers::setOnlineOnly()
     * @uses FlightQualifiers::setScan()
     * @param \Sabre\OTAAirAvail\Structs\AlliancePartner $alliancePartner
     * @param \Sabre\OTAAirAvail\Structs\Cabin $cabin
     * @param \Sabre\OTAAirAvail\Structs\VendorPrefs $vendorPrefs
     * @param bool $charters
     * @param bool $directOnly
     * @param bool $excludeCodeshares
     * @param bool $onlineOnly
     * @param bool $scan
     */
    public function __construct(\Sabre\OTAAirAvail\Structs\AlliancePartner $alliancePartner = null, \Sabre\OTAAirAvail\Structs\Cabin $cabin = null, \Sabre\OTAAirAvail\Structs\VendorPrefs $vendorPrefs = null, $charters = null, $directOnly = null, $excludeCodeshares = null, $onlineOnly = null, $scan = null)
    {
        $this
            ->setAlliancePartner($alliancePartner)
            ->setCabin($cabin)
            ->setVendorPrefs($vendorPrefs)
            ->setCharters($charters)
            ->setDirectOnly($directOnly)
            ->setExcludeCodeshares($excludeCodeshares)
            ->setOnlineOnly($onlineOnly)
            ->setScan($scan);
    }
    /**
     * Get AlliancePartner value
     * @return \Sabre\OTAAirAvail\Structs\AlliancePartner|null
     */
    public function getAlliancePartner()
    {
        return $this->AlliancePartner;
    }
    /**
     * Set AlliancePartner value
     * @param \Sabre\OTAAirAvail\Structs\AlliancePartner $alliancePartner
     * @return \Sabre\OTAAirAvail\Structs\FlightQualifiers
     */
    public function setAlliancePartner(\Sabre\OTAAirAvail\Structs\AlliancePartner $alliancePartner = null)
    {
        $this->AlliancePartner = $alliancePartner;
        return $this;
    }
    /**
     * Get Cabin value
     * @return \Sabre\OTAAirAvail\Structs\Cabin|null
     */
    public function getCabin()
    {
        return $this->Cabin;
    }
    /**
     * Set Cabin value
     * @param \Sabre\OTAAirAvail\Structs\Cabin $cabin
     * @return \Sabre\OTAAirAvail\Structs\FlightQualifiers
     */
    public function setCabin(\Sabre\OTAAirAvail\Structs\Cabin $cabin = null)
    {
        $this->Cabin = $cabin;
        return $this;
    }
    /**
     * Get VendorPrefs value
     * @return \Sabre\OTAAirAvail\Structs\VendorPrefs|null
     */
    public function getVendorPrefs()
    {
        return $this->VendorPrefs;
    }
    /**
     * Set VendorPrefs value
     * @param \Sabre\OTAAirAvail\Structs\VendorPrefs $vendorPrefs
     * @return \Sabre\OTAAirAvail\Structs\FlightQualifiers
     */
    public function setVendorPrefs(\Sabre\OTAAirAvail\Structs\VendorPrefs $vendorPrefs = null)
    {
        $this->VendorPrefs = $vendorPrefs;
        return $this;
    }
    /**
     * Get Charters value
     * @return bool|null
     */
    public function getCharters()
    {
        return $this->Charters;
    }
    /**
     * Set Charters value
     * @param bool $charters
     * @return \Sabre\OTAAirAvail\Structs\FlightQualifiers
     */
    public function setCharters($charters = null)
    {
        $this->Charters = $charters;
        return $this;
    }
    /**
     * Get DirectOnly value
     * @return bool|null
     */
    public function getDirectOnly()
    {
        return $this->DirectOnly;
    }
    /**
     * Set DirectOnly value
     * @param bool $directOnly
     * @return \Sabre\OTAAirAvail\Structs\FlightQualifiers
     */
    public function setDirectOnly($directOnly = null)
    {
        $this->DirectOnly = $directOnly;
        return $this;
    }
    /**
     * Get ExcludeCodeshares value
     * @return bool|null
     */
    public function getExcludeCodeshares()
    {
        return $this->ExcludeCodeshares;
    }
    /**
     * Set ExcludeCodeshares value
     * @param bool $excludeCodeshares
     * @return \Sabre\OTAAirAvail\Structs\FlightQualifiers
     */
    public function setExcludeCodeshares($excludeCodeshares = null)
    {
        $this->ExcludeCodeshares = $excludeCodeshares;
        return $this;
    }
    /**
     * Get OnlineOnly value
     * @return bool|null
     */
    public function getOnlineOnly()
    {
        return $this->OnlineOnly;
    }
    /**
     * Set OnlineOnly value
     * @param bool $onlineOnly
     * @return \Sabre\OTAAirAvail\Structs\FlightQualifiers
     */
    public function setOnlineOnly($onlineOnly = null)
    {
        $this->OnlineOnly = $onlineOnly;
        return $this;
    }
    /**
     * Get Scan value
     * @return bool|null
     */
    public function getScan()
    {
        return $this->Scan;
    }
    /**
     * Set Scan value
     * @param bool $scan
     * @return \Sabre\OTAAirAvail\Structs\FlightQualifiers
     */
    public function setScan($scan = null)
    {
        $this->Scan = $scan;
        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\FlightQualifiers
     */
    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__;
    }
}
