<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_SearchSegmentsRentacar StructType
 * @subpackage Structs
 */
class JP_SearchSegmentsRentacar extends AbstractStructBase
{
    /**
     * The SearchSegmentRentacar
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_SearchSegmentRentacar
     */
    public $SearchSegmentRentacar;
    /**
     * The RentacarSuppliers
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_RentacarSupplier
     */
    public $RentacarSuppliers;
    /**
     * The RentacarLocations
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_RentacarLocation
     */
    public $RentacarLocations;
    /**
     * Constructor method for JP_SearchSegmentsRentacar
     * @uses JP_SearchSegmentsRentacar::setSearchSegmentRentacar()
     * @uses JP_SearchSegmentsRentacar::setRentacarSuppliers()
     * @uses JP_SearchSegmentsRentacar::setRentacarLocations()
     * @param \StructType\JP_SearchSegmentRentacar $searchSegmentRentacar
     * @param \ArrayType\ArrayOfJP_RentacarSupplier $rentacarSuppliers
     * @param \ArrayType\ArrayOfJP_RentacarLocation $rentacarLocations
     */
    public function __construct(\StructType\JP_SearchSegmentRentacar $searchSegmentRentacar = null, \ArrayType\ArrayOfJP_RentacarSupplier $rentacarSuppliers = null, \ArrayType\ArrayOfJP_RentacarLocation $rentacarLocations = null)
    {
        $this
            ->setSearchSegmentRentacar($searchSegmentRentacar)
            ->setRentacarSuppliers($rentacarSuppliers)
            ->setRentacarLocations($rentacarLocations);
    }
    /**
     * Get SearchSegmentRentacar value
     * @return \StructType\JP_SearchSegmentRentacar|null
     */
    public function getSearchSegmentRentacar()
    {
        return $this->SearchSegmentRentacar;
    }
    /**
     * Set SearchSegmentRentacar value
     * @param \StructType\JP_SearchSegmentRentacar $searchSegmentRentacar
     * @return \StructType\JP_SearchSegmentsRentacar
     */
    public function setSearchSegmentRentacar(\StructType\JP_SearchSegmentRentacar $searchSegmentRentacar = null)
    {
        $this->SearchSegmentRentacar = $searchSegmentRentacar;
        return $this;
    }
    /**
     * Get RentacarSuppliers value
     * @return \ArrayType\ArrayOfJP_RentacarSupplier|null
     */
    public function getRentacarSuppliers()
    {
        return $this->RentacarSuppliers;
    }
    /**
     * Set RentacarSuppliers value
     * @param \ArrayType\ArrayOfJP_RentacarSupplier $rentacarSuppliers
     * @return \StructType\JP_SearchSegmentsRentacar
     */
    public function setRentacarSuppliers(\ArrayType\ArrayOfJP_RentacarSupplier $rentacarSuppliers = null)
    {
        $this->RentacarSuppliers = $rentacarSuppliers;
        return $this;
    }
    /**
     * Get RentacarLocations value
     * @return \ArrayType\ArrayOfJP_RentacarLocation|null
     */
    public function getRentacarLocations()
    {
        return $this->RentacarLocations;
    }
    /**
     * Set RentacarLocations value
     * @param \ArrayType\ArrayOfJP_RentacarLocation $rentacarLocations
     * @return \StructType\JP_SearchSegmentsRentacar
     */
    public function setRentacarLocations(\ArrayType\ArrayOfJP_RentacarLocation $rentacarLocations = null)
    {
        $this->RentacarLocations = $rentacarLocations;
        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_SearchSegmentsRentacar
     */
    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__;
    }
}
