<?php

namespace Sabre\TravelItineraryRead\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AccountingTransactionSource Structs
 * @subpackage Structs
 */
class AccountingTransactionSource extends AbstractStructBase
{
    /**
     * The SegmentData
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \Sabre\TravelItineraryRead\Structs\SegmentData
     */
    public $SegmentData;
    /**
     * The AncillaryServiceData
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \Sabre\TravelItineraryRead\Structs\AncillaryServiceData
     */
    public $AncillaryServiceData;
    /**
     * Constructor method for AccountingTransactionSource
     * @uses AccountingTransactionSource::setSegmentData()
     * @uses AccountingTransactionSource::setAncillaryServiceData()
     * @param \Sabre\TravelItineraryRead\Structs\SegmentData $segmentData
     * @param \Sabre\TravelItineraryRead\Structs\AncillaryServiceData $ancillaryServiceData
     */
    public function __construct(\Sabre\TravelItineraryRead\Structs\SegmentData $segmentData = null, \Sabre\TravelItineraryRead\Structs\AncillaryServiceData $ancillaryServiceData = null)
    {
        $this
            ->setSegmentData($segmentData)
            ->setAncillaryServiceData($ancillaryServiceData);
    }
    /**
     * Get SegmentData value
     * @return \Sabre\TravelItineraryRead\Structs\SegmentData|null
     */
    public function getSegmentData()
    {
        return $this->SegmentData;
    }
    /**
     * Set SegmentData value
     * @param \Sabre\TravelItineraryRead\Structs\SegmentData $segmentData
     * @return \Sabre\TravelItineraryRead\Structs\AccountingTransactionSource
     */
    public function setSegmentData(\Sabre\TravelItineraryRead\Structs\SegmentData $segmentData = null)
    {
        $this->SegmentData = $segmentData;
        return $this;
    }
    /**
     * Get AncillaryServiceData value
     * @return \Sabre\TravelItineraryRead\Structs\AncillaryServiceData|null
     */
    public function getAncillaryServiceData()
    {
        return $this->AncillaryServiceData;
    }
    /**
     * Set AncillaryServiceData value
     * @param \Sabre\TravelItineraryRead\Structs\AncillaryServiceData $ancillaryServiceData
     * @return \Sabre\TravelItineraryRead\Structs\AccountingTransactionSource
     */
    public function setAncillaryServiceData(\Sabre\TravelItineraryRead\Structs\AncillaryServiceData $ancillaryServiceData = null)
    {
        $this->AncillaryServiceData = $ancillaryServiceData;
        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\TravelItineraryRead\Structs\AccountingTransactionSource
     */
    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__;
    }
}
