xxxxxxxxxx
namespace Sabre\BargainFinderMax\Structs;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for OriginDestinationOption Structs
* @subpackage Structs
*/
class OriginDestinationOption extends AbstractStructBase
{
/**
* The FlightSegment
* Meta informations extracted from the WSDL
* - maxOccurs: 4
* @var \Sabre\BargainFinderMax\Structs\FlightSegment[]
*/
public $FlightSegment;
/**
* Constructor method for OriginDestinationOption
* @uses OriginDestinationOption::setFlightSegment()
* @param \Sabre\BargainFinderMax\Structs\FlightSegment[] $flightSegment
*/
public function __construct(array $flightSegment = array())
{
$this
->setFlightSegment($flightSegment);
}
/**
* Get FlightSegment value
* @return \Sabre\BargainFinderMax\Structs\FlightSegment[]|null
*/
public function getFlightSegment()
{
return $this->FlightSegment;
}
/**
* Set FlightSegment value
* @throws \InvalidArgumentException
* @param \Sabre\BargainFinderMax\Structs\FlightSegment[] $flightSegment
* @return \Sabre\BargainFinderMax\Structs\OriginDestinationOption
*/
public function setFlightSegment(array $flightSegment = array())
{
$this->FlightSegment = $flightSegment;
return $this;
}
/**
* Add item to FlightSegment value
* @throws \InvalidArgumentException
* @param \Sabre\BargainFinderMax\Structs\FlightSegment $item
* @return \Sabre\BargainFinderMax\Structs\OriginDestinationOption
*/
public function addToFlightSegment(\Sabre\BargainFinderMax\Structs\FlightSegment $item)
{
$this->FlightSegment[] = $item;
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\BargainFinderMax\Structs\OriginDestinationOption
*/
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__;
}
}
Don't be shy, don't hesitate to contact us for any subject, we'll be glad to help.
This platform is provided to give developpers and non developpers a way to easily consume SOAP Web Services or share their own SOAP Web Services with extra features powered by the platform.
© 2025 Providr.IO