<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_RentacarBookLocationDetails StructType
 * @subpackage Structs
 */
class JP_RentacarBookLocationDetails extends AbstractStructBase
{
    /**
     * The RentacarLocationDetailPickUp
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_RentacarLocationDetail
     */
    public $RentacarLocationDetailPickUp;
    /**
     * The RentacarLocationDetailDropOff
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_RentacarLocationDetail
     */
    public $RentacarLocationDetailDropOff;
    /**
     * Constructor method for JP_RentacarBookLocationDetails
     * @uses JP_RentacarBookLocationDetails::setRentacarLocationDetailPickUp()
     * @uses JP_RentacarBookLocationDetails::setRentacarLocationDetailDropOff()
     * @param \StructType\JP_RentacarLocationDetail $rentacarLocationDetailPickUp
     * @param \StructType\JP_RentacarLocationDetail $rentacarLocationDetailDropOff
     */
    public function __construct(\StructType\JP_RentacarLocationDetail $rentacarLocationDetailPickUp = null, \StructType\JP_RentacarLocationDetail $rentacarLocationDetailDropOff = null)
    {
        $this
            ->setRentacarLocationDetailPickUp($rentacarLocationDetailPickUp)
            ->setRentacarLocationDetailDropOff($rentacarLocationDetailDropOff);
    }
    /**
     * Get RentacarLocationDetailPickUp value
     * @return \StructType\JP_RentacarLocationDetail|null
     */
    public function getRentacarLocationDetailPickUp()
    {
        return $this->RentacarLocationDetailPickUp;
    }
    /**
     * Set RentacarLocationDetailPickUp value
     * @param \StructType\JP_RentacarLocationDetail $rentacarLocationDetailPickUp
     * @return \StructType\JP_RentacarBookLocationDetails
     */
    public function setRentacarLocationDetailPickUp(\StructType\JP_RentacarLocationDetail $rentacarLocationDetailPickUp = null)
    {
        $this->RentacarLocationDetailPickUp = $rentacarLocationDetailPickUp;
        return $this;
    }
    /**
     * Get RentacarLocationDetailDropOff value
     * @return \StructType\JP_RentacarLocationDetail|null
     */
    public function getRentacarLocationDetailDropOff()
    {
        return $this->RentacarLocationDetailDropOff;
    }
    /**
     * Set RentacarLocationDetailDropOff value
     * @param \StructType\JP_RentacarLocationDetail $rentacarLocationDetailDropOff
     * @return \StructType\JP_RentacarBookLocationDetails
     */
    public function setRentacarLocationDetailDropOff(\StructType\JP_RentacarLocationDetail $rentacarLocationDetailDropOff = null)
    {
        $this->RentacarLocationDetailDropOff = $rentacarLocationDetailDropOff;
        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_RentacarBookLocationDetails
     */
    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__;
    }
}
