<?php

namespace Sabre\OTAAirPrice\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ItineraryOptions Structs
 * @subpackage Structs
 */
class ItineraryOptions extends AbstractStructBase
{
    /**
     * The BreakFare
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\BreakFare[]
     */
    public $BreakFare;
    /**
     * The ForceConnection
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\ForceConnection[]
     */
    public $ForceConnection;
    /**
     * The ForceStopOver
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\ForceStopOver[]
     */
    public $ForceStopOver;
    /**
     * The OverrideBreak
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\OverrideBreak[]
     */
    public $OverrideBreak;
    /**
     * The SegmentSelect
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\SegmentSelect[]
     */
    public $SegmentSelect;
    /**
     * The SideTrip
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirPrice\Structs\SideTrip
     */
    public $SideTrip;
    /**
     * Constructor method for ItineraryOptions
     * @uses ItineraryOptions::setBreakFare()
     * @uses ItineraryOptions::setForceConnection()
     * @uses ItineraryOptions::setForceStopOver()
     * @uses ItineraryOptions::setOverrideBreak()
     * @uses ItineraryOptions::setSegmentSelect()
     * @uses ItineraryOptions::setSideTrip()
     * @param \Sabre\OTAAirPrice\Structs\BreakFare[] $breakFare
     * @param \Sabre\OTAAirPrice\Structs\ForceConnection[] $forceConnection
     * @param \Sabre\OTAAirPrice\Structs\ForceStopOver[] $forceStopOver
     * @param \Sabre\OTAAirPrice\Structs\OverrideBreak[] $overrideBreak
     * @param \Sabre\OTAAirPrice\Structs\SegmentSelect[] $segmentSelect
     * @param \Sabre\OTAAirPrice\Structs\SideTrip $sideTrip
     */
    public function __construct(array $breakFare = array(), array $forceConnection = array(), array $forceStopOver = array(), array $overrideBreak = array(), array $segmentSelect = array(), \Sabre\OTAAirPrice\Structs\SideTrip $sideTrip = null)
    {
        $this
            ->setBreakFare($breakFare)
            ->setForceConnection($forceConnection)
            ->setForceStopOver($forceStopOver)
            ->setOverrideBreak($overrideBreak)
            ->setSegmentSelect($segmentSelect)
            ->setSideTrip($sideTrip);
    }
    /**
     * Get BreakFare value
     * @return \Sabre\OTAAirPrice\Structs\BreakFare[]|null
     */
    public function getBreakFare()
    {
        return $this->BreakFare;
    }
    /**
     * Set BreakFare value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAAirPrice\Structs\BreakFare[] $breakFare
     * @return \Sabre\OTAAirPrice\Structs\ItineraryOptions
     */
    public function setBreakFare(array $breakFare = array())
    {
        $this->BreakFare = $breakFare;
        return $this;
    }
    /**
     * Add item to BreakFare value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAAirPrice\Structs\BreakFare $item
     * @return \Sabre\OTAAirPrice\Structs\ItineraryOptions
     */
    public function addToBreakFare(\Sabre\OTAAirPrice\Structs\BreakFare $item)
    {
        $this->BreakFare[] = $item;
        return $this;
    }
    /**
     * Get ForceConnection value
     * @return \Sabre\OTAAirPrice\Structs\ForceConnection[]|null
     */
    public function getForceConnection()
    {
        return $this->ForceConnection;
    }
    /**
     * Set ForceConnection value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAAirPrice\Structs\ForceConnection[] $forceConnection
     * @return \Sabre\OTAAirPrice\Structs\ItineraryOptions
     */
    public function setForceConnection(array $forceConnection = array())
    {
        $this->ForceConnection = $forceConnection;
        return $this;
    }
    /**
     * Add item to ForceConnection value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAAirPrice\Structs\ForceConnection $item
     * @return \Sabre\OTAAirPrice\Structs\ItineraryOptions
     */
    public function addToForceConnection(\Sabre\OTAAirPrice\Structs\ForceConnection $item)
    {
        $this->ForceConnection[] = $item;
        return $this;
    }
    /**
     * Get ForceStopOver value
     * @return \Sabre\OTAAirPrice\Structs\ForceStopOver[]|null
     */
    public function getForceStopOver()
    {
        return $this->ForceStopOver;
    }
    /**
     * Set ForceStopOver value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAAirPrice\Structs\ForceStopOver[] $forceStopOver
     * @return \Sabre\OTAAirPrice\Structs\ItineraryOptions
     */
    public function setForceStopOver(array $forceStopOver = array())
    {
        $this->ForceStopOver = $forceStopOver;
        return $this;
    }
    /**
     * Add item to ForceStopOver value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAAirPrice\Structs\ForceStopOver $item
     * @return \Sabre\OTAAirPrice\Structs\ItineraryOptions
     */
    public function addToForceStopOver(\Sabre\OTAAirPrice\Structs\ForceStopOver $item)
    {
        $this->ForceStopOver[] = $item;
        return $this;
    }
    /**
     * Get OverrideBreak value
     * @return \Sabre\OTAAirPrice\Structs\OverrideBreak[]|null
     */
    public function getOverrideBreak()
    {
        return $this->OverrideBreak;
    }
    /**
     * Set OverrideBreak value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAAirPrice\Structs\OverrideBreak[] $overrideBreak
     * @return \Sabre\OTAAirPrice\Structs\ItineraryOptions
     */
    public function setOverrideBreak(array $overrideBreak = array())
    {
        $this->OverrideBreak = $overrideBreak;
        return $this;
    }
    /**
     * Add item to OverrideBreak value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAAirPrice\Structs\OverrideBreak $item
     * @return \Sabre\OTAAirPrice\Structs\ItineraryOptions
     */
    public function addToOverrideBreak(\Sabre\OTAAirPrice\Structs\OverrideBreak $item)
    {
        $this->OverrideBreak[] = $item;
        return $this;
    }
    /**
     * Get SegmentSelect value
     * @return \Sabre\OTAAirPrice\Structs\SegmentSelect[]|null
     */
    public function getSegmentSelect()
    {
        return $this->SegmentSelect;
    }
    /**
     * Set SegmentSelect value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAAirPrice\Structs\SegmentSelect[] $segmentSelect
     * @return \Sabre\OTAAirPrice\Structs\ItineraryOptions
     */
    public function setSegmentSelect(array $segmentSelect = array())
    {
        $this->SegmentSelect = $segmentSelect;
        return $this;
    }
    /**
     * Add item to SegmentSelect value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAAirPrice\Structs\SegmentSelect $item
     * @return \Sabre\OTAAirPrice\Structs\ItineraryOptions
     */
    public function addToSegmentSelect(\Sabre\OTAAirPrice\Structs\SegmentSelect $item)
    {
        $this->SegmentSelect[] = $item;
        return $this;
    }
    /**
     * Get SideTrip value
     * @return \Sabre\OTAAirPrice\Structs\SideTrip|null
     */
    public function getSideTrip()
    {
        return $this->SideTrip;
    }
    /**
     * Set SideTrip value
     * @param \Sabre\OTAAirPrice\Structs\SideTrip $sideTrip
     * @return \Sabre\OTAAirPrice\Structs\ItineraryOptions
     */
    public function setSideTrip(\Sabre\OTAAirPrice\Structs\SideTrip $sideTrip = null)
    {
        $this->SideTrip = $sideTrip;
        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\ItineraryOptions
     */
    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__;
    }
}
