<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_RentacarBookingRulesRequest StructType
 * @subpackage Structs
 */
class JP_RentacarBookingRulesRequest extends AbstractStructBase
{
    /**
     * The RentacarOption
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_RentacarRequestBookingRulesOption
     */
    public $RentacarOption;
    /**
     * The SearchSegmentsRentacar
     * Meta informations 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;
    }
    /**
     * 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 \StructType\JP_RentacarBookingRulesRequest
     */
    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__;
    }
}
