<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_HotelListRequest StructType
 * @subpackage Structs
 */
class JP_HotelListRequest extends AbstractStructBase
{
    /**
     * The Suppliers
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_Suppliers
     */
    public $Suppliers;
    /**
     * The ZoneCode
     * @var string
     */
    public $ZoneCode;
    /**
     * The ShowBasicInfo
     * @var bool
     */
    public $ShowBasicInfo;
    /**
     * Constructor method for JP_HotelListRequest
     * @uses JP_HotelListRequest::setSuppliers()
     * @uses JP_HotelListRequest::setZoneCode()
     * @uses JP_HotelListRequest::setShowBasicInfo()
     * @param \StructType\JP_Suppliers $suppliers
     * @param string $zoneCode
     * @param bool $showBasicInfo
     */
    public function __construct(\StructType\JP_Suppliers $suppliers = null, $zoneCode = null, $showBasicInfo = null)
    {
        $this
            ->setSuppliers($suppliers)
            ->setZoneCode($zoneCode)
            ->setShowBasicInfo($showBasicInfo);
    }
    /**
     * Get Suppliers value
     * @return \StructType\JP_Suppliers|null
     */
    public function getSuppliers()
    {
        return $this->Suppliers;
    }
    /**
     * Set Suppliers value
     * @param \StructType\JP_Suppliers $suppliers
     * @return \StructType\JP_HotelListRequest
     */
    public function setSuppliers(\StructType\JP_Suppliers $suppliers = null)
    {
        $this->Suppliers = $suppliers;
        return $this;
    }
    /**
     * Get ZoneCode value
     * @return string|null
     */
    public function getZoneCode()
    {
        return $this->ZoneCode;
    }
    /**
     * Set ZoneCode value
     * @param string $zoneCode
     * @return \StructType\JP_HotelListRequest
     */
    public function setZoneCode($zoneCode = null)
    {
        // validation for constraint: string
        if (!is_null($zoneCode) && !is_string($zoneCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($zoneCode, true), gettype($zoneCode)), __LINE__);
        }
        $this->ZoneCode = $zoneCode;
        return $this;
    }
    /**
     * Get ShowBasicInfo value
     * @return bool|null
     */
    public function getShowBasicInfo()
    {
        return $this->ShowBasicInfo;
    }
    /**
     * Set ShowBasicInfo value
     * @param bool $showBasicInfo
     * @return \StructType\JP_HotelListRequest
     */
    public function setShowBasicInfo($showBasicInfo = null)
    {
        // validation for constraint: boolean
        if (!is_null($showBasicInfo) && !is_bool($showBasicInfo)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($showBasicInfo, true), gettype($showBasicInfo)), __LINE__);
        }
        $this->ShowBasicInfo = $showBasicInfo;
        return $this;
    }
}
