<?php

namespace Sabre\PassengerDetailsRQ\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for MiscSegmentSellRQ Structs
 * @subpackage Structs
 */
class MiscSegmentSellRQ extends AbstractStructBase
{
    /**
     * The MiscSegment
     * @var \Sabre\PassengerDetailsRQ\Structs\MiscSegment
     */
    public $MiscSegment;
    /**
     * Constructor method for MiscSegmentSellRQ
     * @uses MiscSegmentSellRQ::setMiscSegment()
     * @param \Sabre\PassengerDetailsRQ\Structs\MiscSegment $miscSegment
     */
    public function __construct(\Sabre\PassengerDetailsRQ\Structs\MiscSegment $miscSegment = null)
    {
        $this
            ->setMiscSegment($miscSegment);
    }
    /**
     * Get MiscSegment value
     * @return \Sabre\PassengerDetailsRQ\Structs\MiscSegment|null
     */
    public function getMiscSegment()
    {
        return $this->MiscSegment;
    }
    /**
     * Set MiscSegment value
     * @param \Sabre\PassengerDetailsRQ\Structs\MiscSegment $miscSegment
     * @return \Sabre\PassengerDetailsRQ\Structs\MiscSegmentSellRQ
     */
    public function setMiscSegment(\Sabre\PassengerDetailsRQ\Structs\MiscSegment $miscSegment = null)
    {
        $this->MiscSegment = $miscSegment;
        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\PassengerDetailsRQ\Structs\MiscSegmentSellRQ
     */
    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__;
    }
}
