<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_TransportBookingRulesRequest StructType
 * @subpackage Structs
 */
class JP_TransportBookingRulesRequest extends AbstractStructBase
{
    /**
     * The TransportOption
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_TransportOptionRequest
     */
    public $TransportOption;
    /**
     * The SearchSegmentsTransport
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_SearchSegmentsTransport
     */
    public $SearchSegmentsTransport;
    /**
     * The RelPaxesDist
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_RelPaxDist
     */
    public $RelPaxesDist;
    /**
     * Constructor method for JP_TransportBookingRulesRequest
     * @uses JP_TransportBookingRulesRequest::setTransportOption()
     * @uses JP_TransportBookingRulesRequest::setSearchSegmentsTransport()
     * @uses JP_TransportBookingRulesRequest::setRelPaxesDist()
     * @param \StructType\JP_TransportOptionRequest $transportOption
     * @param \StructType\JP_SearchSegmentsTransport $searchSegmentsTransport
     * @param \ArrayType\ArrayOfJP_RelPaxDist $relPaxesDist
     */
    public function __construct(\StructType\JP_TransportOptionRequest $transportOption = null, \StructType\JP_SearchSegmentsTransport $searchSegmentsTransport = null, \ArrayType\ArrayOfJP_RelPaxDist $relPaxesDist = null)
    {
        $this
            ->setTransportOption($transportOption)
            ->setSearchSegmentsTransport($searchSegmentsTransport)
            ->setRelPaxesDist($relPaxesDist);
    }
    /**
     * Get TransportOption value
     * @return \StructType\JP_TransportOptionRequest|null
     */
    public function getTransportOption()
    {
        return $this->TransportOption;
    }
    /**
     * Set TransportOption value
     * @param \StructType\JP_TransportOptionRequest $transportOption
     * @return \StructType\JP_TransportBookingRulesRequest
     */
    public function setTransportOption(\StructType\JP_TransportOptionRequest $transportOption = null)
    {
        $this->TransportOption = $transportOption;
        return $this;
    }
    /**
     * Get SearchSegmentsTransport value
     * @return \StructType\JP_SearchSegmentsTransport|null
     */
    public function getSearchSegmentsTransport()
    {
        return $this->SearchSegmentsTransport;
    }
    /**
     * Set SearchSegmentsTransport value
     * @param \StructType\JP_SearchSegmentsTransport $searchSegmentsTransport
     * @return \StructType\JP_TransportBookingRulesRequest
     */
    public function setSearchSegmentsTransport(\StructType\JP_SearchSegmentsTransport $searchSegmentsTransport = null)
    {
        $this->SearchSegmentsTransport = $searchSegmentsTransport;
        return $this;
    }
    /**
     * Get RelPaxesDist value
     * @return \ArrayType\ArrayOfJP_RelPaxDist|null
     */
    public function getRelPaxesDist()
    {
        return $this->RelPaxesDist;
    }
    /**
     * Set RelPaxesDist value
     * @param \ArrayType\ArrayOfJP_RelPaxDist $relPaxesDist
     * @return \StructType\JP_TransportBookingRulesRequest
     */
    public function setRelPaxesDist(\ArrayType\ArrayOfJP_RelPaxDist $relPaxesDist = null)
    {
        $this->RelPaxesDist = $relPaxesDist;
        return $this;
    }
}
