<?php

namespace Sabre\OTAAirPrice\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Overrides Structs
 * @subpackage Structs
 */
class Overrides extends AbstractStructBase
{
    /**
     * The MatchNoMatch
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\MatchNoMatch
     */
    public $MatchNoMatch;
    /**
     * The NoMatch
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\NoMatch
     */
    public $NoMatch;
    /**
     * The FuelSurchargeOverride
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\FuelSurchargeOverride
     */
    public $FuelSurchargeOverride;
    /**
     * The GoverningCarrierOverride
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\GoverningCarrierOverride[]
     */
    public $GoverningCarrierOverride;
    /**
     * The NoAdvancePurchase
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\NoAdvancePurchase
     */
    public $NoAdvancePurchase;
    /**
     * The NoFareRestrictions
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\NoFareRestrictions
     */
    public $NoFareRestrictions;
    /**
     * The NoMinMaxStay
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\NoMinMaxStay
     */
    public $NoMinMaxStay;
    /**
     * The NoPenalty
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\NoPenalty
     */
    public $NoPenalty;
    /**
     * The Purchase
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\Purchase
     */
    public $Purchase;
    /**
     * The Ticketing
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\Ticketing
     */
    public $Ticketing;
    /**
     * Constructor method for Overrides
     * @uses Overrides::setMatchNoMatch()
     * @uses Overrides::setNoMatch()
     * @uses Overrides::setFuelSurchargeOverride()
     * @uses Overrides::setGoverningCarrierOverride()
     * @uses Overrides::setNoAdvancePurchase()
     * @uses Overrides::setNoFareRestrictions()
     * @uses Overrides::setNoMinMaxStay()
     * @uses Overrides::setNoPenalty()
     * @uses Overrides::setPurchase()
     * @uses Overrides::setTicketing()
     * @param \Sabre\OTAAirPrice\Structs\MatchNoMatch $matchNoMatch
     * @param \Sabre\OTAAirPrice\Structs\NoMatch $noMatch
     * @param \Sabre\OTAAirPrice\Structs\FuelSurchargeOverride $fuelSurchargeOverride
     * @param \Sabre\OTAAirPrice\Structs\GoverningCarrierOverride[] $governingCarrierOverride
     * @param \Sabre\OTAAirPrice\Structs\NoAdvancePurchase $noAdvancePurchase
     * @param \Sabre\OTAAirPrice\Structs\NoFareRestrictions $noFareRestrictions
     * @param \Sabre\OTAAirPrice\Structs\NoMinMaxStay $noMinMaxStay
     * @param \Sabre\OTAAirPrice\Structs\NoPenalty $noPenalty
     * @param \Sabre\OTAAirPrice\Structs\Purchase $purchase
     * @param \Sabre\OTAAirPrice\Structs\Ticketing $ticketing
     */
    public function __construct(\Sabre\OTAAirPrice\Structs\MatchNoMatch $matchNoMatch = null, \Sabre\OTAAirPrice\Structs\NoMatch $noMatch = null, \Sabre\OTAAirPrice\Structs\FuelSurchargeOverride $fuelSurchargeOverride = null, array $governingCarrierOverride = array(), \Sabre\OTAAirPrice\Structs\NoAdvancePurchase $noAdvancePurchase = null, \Sabre\OTAAirPrice\Structs\NoFareRestrictions $noFareRestrictions = null, \Sabre\OTAAirPrice\Structs\NoMinMaxStay $noMinMaxStay = null, \Sabre\OTAAirPrice\Structs\NoPenalty $noPenalty = null, \Sabre\OTAAirPrice\Structs\Purchase $purchase = null, \Sabre\OTAAirPrice\Structs\Ticketing $ticketing = null)
    {
        $this
            ->setMatchNoMatch($matchNoMatch)
            ->setNoMatch($noMatch)
            ->setFuelSurchargeOverride($fuelSurchargeOverride)
            ->setGoverningCarrierOverride($governingCarrierOverride)
            ->setNoAdvancePurchase($noAdvancePurchase)
            ->setNoFareRestrictions($noFareRestrictions)
            ->setNoMinMaxStay($noMinMaxStay)
            ->setNoPenalty($noPenalty)
            ->setPurchase($purchase)
            ->setTicketing($ticketing);
    }
    /**
     * Get MatchNoMatch value
     * @return \Sabre\OTAAirPrice\Structs\MatchNoMatch|null
     */
    public function getMatchNoMatch()
    {
        return $this->MatchNoMatch;
    }
    /**
     * Set MatchNoMatch value
     * @param \Sabre\OTAAirPrice\Structs\MatchNoMatch $matchNoMatch
     * @return \Sabre\OTAAirPrice\Structs\Overrides
     */
    public function setMatchNoMatch(\Sabre\OTAAirPrice\Structs\MatchNoMatch $matchNoMatch = null)
    {
        $this->MatchNoMatch = $matchNoMatch;
        return $this;
    }
    /**
     * Get NoMatch value
     * @return \Sabre\OTAAirPrice\Structs\NoMatch|null
     */
    public function getNoMatch()
    {
        return $this->NoMatch;
    }
    /**
     * Set NoMatch value
     * @param \Sabre\OTAAirPrice\Structs\NoMatch $noMatch
     * @return \Sabre\OTAAirPrice\Structs\Overrides
     */
    public function setNoMatch(\Sabre\OTAAirPrice\Structs\NoMatch $noMatch = null)
    {
        $this->NoMatch = $noMatch;
        return $this;
    }
    /**
     * Get FuelSurchargeOverride value
     * @return \Sabre\OTAAirPrice\Structs\FuelSurchargeOverride|null
     */
    public function getFuelSurchargeOverride()
    {
        return $this->FuelSurchargeOverride;
    }
    /**
     * Set FuelSurchargeOverride value
     * @param \Sabre\OTAAirPrice\Structs\FuelSurchargeOverride $fuelSurchargeOverride
     * @return \Sabre\OTAAirPrice\Structs\Overrides
     */
    public function setFuelSurchargeOverride(\Sabre\OTAAirPrice\Structs\FuelSurchargeOverride $fuelSurchargeOverride = null)
    {
        $this->FuelSurchargeOverride = $fuelSurchargeOverride;
        return $this;
    }
    /**
     * Get GoverningCarrierOverride value
     * @return \Sabre\OTAAirPrice\Structs\GoverningCarrierOverride[]|null
     */
    public function getGoverningCarrierOverride()
    {
        return $this->GoverningCarrierOverride;
    }
    /**
     * Set GoverningCarrierOverride value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAAirPrice\Structs\GoverningCarrierOverride[] $governingCarrierOverride
     * @return \Sabre\OTAAirPrice\Structs\Overrides
     */
    public function setGoverningCarrierOverride(array $governingCarrierOverride = array())
    {
        $this->GoverningCarrierOverride = $governingCarrierOverride;
        return $this;
    }
    /**
     * Add item to GoverningCarrierOverride value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAAirPrice\Structs\GoverningCarrierOverride $item
     * @return \Sabre\OTAAirPrice\Structs\Overrides
     */
    public function addToGoverningCarrierOverride(\Sabre\OTAAirPrice\Structs\GoverningCarrierOverride $item)
    {
        $this->GoverningCarrierOverride[] = $item;
        return $this;
    }
    /**
     * Get NoAdvancePurchase value
     * @return \Sabre\OTAAirPrice\Structs\NoAdvancePurchase|null
     */
    public function getNoAdvancePurchase()
    {
        return $this->NoAdvancePurchase;
    }
    /**
     * Set NoAdvancePurchase value
     * @param \Sabre\OTAAirPrice\Structs\NoAdvancePurchase $noAdvancePurchase
     * @return \Sabre\OTAAirPrice\Structs\Overrides
     */
    public function setNoAdvancePurchase(\Sabre\OTAAirPrice\Structs\NoAdvancePurchase $noAdvancePurchase = null)
    {
        $this->NoAdvancePurchase = $noAdvancePurchase;
        return $this;
    }
    /**
     * Get NoFareRestrictions value
     * @return \Sabre\OTAAirPrice\Structs\NoFareRestrictions|null
     */
    public function getNoFareRestrictions()
    {
        return $this->NoFareRestrictions;
    }
    /**
     * Set NoFareRestrictions value
     * @param \Sabre\OTAAirPrice\Structs\NoFareRestrictions $noFareRestrictions
     * @return \Sabre\OTAAirPrice\Structs\Overrides
     */
    public function setNoFareRestrictions(\Sabre\OTAAirPrice\Structs\NoFareRestrictions $noFareRestrictions = null)
    {
        $this->NoFareRestrictions = $noFareRestrictions;
        return $this;
    }
    /**
     * Get NoMinMaxStay value
     * @return \Sabre\OTAAirPrice\Structs\NoMinMaxStay|null
     */
    public function getNoMinMaxStay()
    {
        return $this->NoMinMaxStay;
    }
    /**
     * Set NoMinMaxStay value
     * @param \Sabre\OTAAirPrice\Structs\NoMinMaxStay $noMinMaxStay
     * @return \Sabre\OTAAirPrice\Structs\Overrides
     */
    public function setNoMinMaxStay(\Sabre\OTAAirPrice\Structs\NoMinMaxStay $noMinMaxStay = null)
    {
        $this->NoMinMaxStay = $noMinMaxStay;
        return $this;
    }
    /**
     * Get NoPenalty value
     * @return \Sabre\OTAAirPrice\Structs\NoPenalty|null
     */
    public function getNoPenalty()
    {
        return $this->NoPenalty;
    }
    /**
     * Set NoPenalty value
     * @param \Sabre\OTAAirPrice\Structs\NoPenalty $noPenalty
     * @return \Sabre\OTAAirPrice\Structs\Overrides
     */
    public function setNoPenalty(\Sabre\OTAAirPrice\Structs\NoPenalty $noPenalty = null)
    {
        $this->NoPenalty = $noPenalty;
        return $this;
    }
    /**
     * Get Purchase value
     * @return \Sabre\OTAAirPrice\Structs\Purchase|null
     */
    public function getPurchase()
    {
        return $this->Purchase;
    }
    /**
     * Set Purchase value
     * @param \Sabre\OTAAirPrice\Structs\Purchase $purchase
     * @return \Sabre\OTAAirPrice\Structs\Overrides
     */
    public function setPurchase(\Sabre\OTAAirPrice\Structs\Purchase $purchase = null)
    {
        $this->Purchase = $purchase;
        return $this;
    }
    /**
     * Get Ticketing value
     * @return \Sabre\OTAAirPrice\Structs\Ticketing|null
     */
    public function getTicketing()
    {
        return $this->Ticketing;
    }
    /**
     * Set Ticketing value
     * @param \Sabre\OTAAirPrice\Structs\Ticketing $ticketing
     * @return \Sabre\OTAAirPrice\Structs\Overrides
     */
    public function setTicketing(\Sabre\OTAAirPrice\Structs\Ticketing $ticketing = null)
    {
        $this->Ticketing = $ticketing;
        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\Overrides
     */
    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__;
    }
}
