<?php

namespace Sabre\TravelItineraryRead\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SegmentAssociationList Structs
 * @subpackage Structs
 */
class SegmentAssociationList extends AbstractStructBase
{
    /**
     * The SegmentAssociationTag
     * @var \Sabre\TravelItineraryRead\Structs\SegmentAssociationTag
     */
    public $SegmentAssociationTag;
    /**
     * The SegmentAssociationId
     * @var int
     */
    public $SegmentAssociationId;
    /**
     * Constructor method for SegmentAssociationList
     * @uses SegmentAssociationList::setSegmentAssociationTag()
     * @uses SegmentAssociationList::setSegmentAssociationId()
     * @param \Sabre\TravelItineraryRead\Structs\SegmentAssociationTag $segmentAssociationTag
     * @param int $segmentAssociationId
     */
    public function __construct(\Sabre\TravelItineraryRead\Structs\SegmentAssociationTag $segmentAssociationTag = null, $segmentAssociationId = null)
    {
        $this
            ->setSegmentAssociationTag($segmentAssociationTag)
            ->setSegmentAssociationId($segmentAssociationId);
    }
    /**
     * Get SegmentAssociationTag value
     * @return \Sabre\TravelItineraryRead\Structs\SegmentAssociationTag|null
     */
    public function getSegmentAssociationTag()
    {
        return $this->SegmentAssociationTag;
    }
    /**
     * Set SegmentAssociationTag value
     * @param \Sabre\TravelItineraryRead\Structs\SegmentAssociationTag $segmentAssociationTag
     * @return \Sabre\TravelItineraryRead\Structs\SegmentAssociationList
     */
    public function setSegmentAssociationTag(\Sabre\TravelItineraryRead\Structs\SegmentAssociationTag $segmentAssociationTag = null)
    {
        $this->SegmentAssociationTag = $segmentAssociationTag;
        return $this;
    }
    /**
     * Get SegmentAssociationId value
     * @return int|null
     */
    public function getSegmentAssociationId()
    {
        return $this->SegmentAssociationId;
    }
    /**
     * Set SegmentAssociationId value
     * @param int $segmentAssociationId
     * @return \Sabre\TravelItineraryRead\Structs\SegmentAssociationList
     */
    public function setSegmentAssociationId($segmentAssociationId = null)
    {
        $this->SegmentAssociationId = $segmentAssociationId;
        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\SegmentAssociationList
     */
    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__;
    }
}
