<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_RentacarBookingRulesRequest StructType
 * @subpackage Structs
 */
class JP_RentacarBookingRulesRequest extends AbstractStructBase
{
    /**
     * The RentacarOption
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_RentacarRequestBookingRulesOption
     */
    public $RentacarOption;
    /**
     * The SearchSegmentsRentacar
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_SearchSegmentsRentacarRules
     */
    public $SearchSegmentsRentacar;
    /**
     * Constructor method for JP_RentacarBookingRulesRequest
     * @uses JP_RentacarBookingRulesRequest::setRentacarOption()
     * @uses JP_RentacarBookingRulesRequest::setSearchSegmentsRentacar()
     * @param \StructType\JP_RentacarRequestBookingRulesOption $rentacarOption
     * @param \StructType\JP_SearchSegmentsRentacarRules $searchSegmentsRentacar
     */
    public function __construct(\StructType\JP_RentacarRequestBookingRulesOption $rentacarOption = null, \StructType\JP_SearchSegmentsRentacarRules $searchSegmentsRentacar = null)
    {
        $this
            ->setRentacarOption($rentacarOption)
            ->setSearchSegmentsRentacar($searchSegmentsRentacar);
    }
    /**
     * Get RentacarOption value
     * @return \StructType\JP_RentacarRequestBookingRulesOption|null
     */
    public function getRentacarOption()
    {
        return $this->RentacarOption;
    }
    /**
     * Set RentacarOption value
     * @param \StructType\JP_RentacarRequestBookingRulesOption $rentacarOption
     * @return \StructType\JP_RentacarBookingRulesRequest
     */
    public function setRentacarOption(\StructType\JP_RentacarRequestBookingRulesOption $rentacarOption = null)
    {
        $this->RentacarOption = $rentacarOption;
        return $this;
    }
    /**
     * Get SearchSegmentsRentacar value
     * @return \StructType\JP_SearchSegmentsRentacarRules|null
     */
    public function getSearchSegmentsRentacar()
    {
        return $this->SearchSegmentsRentacar;
    }
    /**
     * Set SearchSegmentsRentacar value
     * @param \StructType\JP_SearchSegmentsRentacarRules $searchSegmentsRentacar
     * @return \StructType\JP_RentacarBookingRulesRequest
     */
    public function setSearchSegmentsRentacar(\StructType\JP_SearchSegmentsRentacarRules $searchSegmentsRentacar = null)
    {
        $this->SearchSegmentsRentacar = $searchSegmentsRentacar;
        return $this;
    }
}
