<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_RentacarLocationListRequest StructType
 * @subpackage Structs
 */
class JP_RentacarLocationListRequest extends AbstractStructBase
{
    /**
     * The ZoneCode
     * Meta informations extracted from the WSDL
     * - use: required
     * @var int
     */
    public $ZoneCode;
    /**
     * The Suppliers
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfString5
     */
    public $Suppliers;
    /**
     * The ShowBasicInfo
     * @var bool
     */
    public $ShowBasicInfo;
    /**
     * Constructor method for JP_RentacarLocationListRequest
     * @uses JP_RentacarLocationListRequest::setZoneCode()
     * @uses JP_RentacarLocationListRequest::setSuppliers()
     * @uses JP_RentacarLocationListRequest::setShowBasicInfo()
     * @param int $zoneCode
     * @param \ArrayType\ArrayOfString5 $suppliers
     * @param bool $showBasicInfo
     */
    public function __construct($zoneCode = null, \ArrayType\ArrayOfString5 $suppliers = null, $showBasicInfo = null)
    {
        $this
            ->setZoneCode($zoneCode)
            ->setSuppliers($suppliers)
            ->setShowBasicInfo($showBasicInfo);
    }
    /**
     * Get ZoneCode value
     * @return int
     */
    public function getZoneCode()
    {
        return $this->ZoneCode;
    }
    /**
     * Set ZoneCode value
     * @param int $zoneCode
     * @return \StructType\JP_RentacarLocationListRequest
     */
    public function setZoneCode($zoneCode = null)
    {
        // validation for constraint: int
        if (!is_null($zoneCode) && !is_numeric($zoneCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($zoneCode)), __LINE__);
        }
        $this->ZoneCode = $zoneCode;
        return $this;
    }
    /**
     * Get Suppliers value
     * @return \ArrayType\ArrayOfString5|null
     */
    public function getSuppliers()
    {
        return $this->Suppliers;
    }
    /**
     * Set Suppliers value
     * @param \ArrayType\ArrayOfString5 $suppliers
     * @return \StructType\JP_RentacarLocationListRequest
     */
    public function setSuppliers(\ArrayType\ArrayOfString5 $suppliers = null)
    {
        $this->Suppliers = $suppliers;
        return $this;
    }
    /**
     * Get ShowBasicInfo value
     * @return bool|null
     */
    public function getShowBasicInfo()
    {
        return $this->ShowBasicInfo;
    }
    /**
     * Set ShowBasicInfo value
     * @param bool $showBasicInfo
     * @return \StructType\JP_RentacarLocationListRequest
     */
    public function setShowBasicInfo($showBasicInfo = null)
    {
        // validation for constraint: boolean
        if (!is_null($showBasicInfo) && !is_bool($showBasicInfo)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($showBasicInfo)), __LINE__);
        }
        $this->ShowBasicInfo = $showBasicInfo;
        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_RentacarLocationListRequest
     */
    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__;
    }
}
