<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_HotelDataAdvancedOptions StructType
 * @subpackage Structs
 */
class JP_HotelDataAdvancedOptions extends AbstractStructBase
{
    /**
     * The ShowGiataCode
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var bool
     */
    public $ShowGiataCode;
    /**
     * The OnlyDirectZone
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var bool
     */
    public $OnlyDirectZone;
    /**
     * Constructor method for JP_HotelDataAdvancedOptions
     * @uses JP_HotelDataAdvancedOptions::setShowGiataCode()
     * @uses JP_HotelDataAdvancedOptions::setOnlyDirectZone()
     * @param bool $showGiataCode
     * @param bool $onlyDirectZone
     */
    public function __construct($showGiataCode = null, $onlyDirectZone = null)
    {
        $this
            ->setShowGiataCode($showGiataCode)
            ->setOnlyDirectZone($onlyDirectZone);
    }
    /**
     * Get ShowGiataCode value
     * @return bool|null
     */
    public function getShowGiataCode()
    {
        return $this->ShowGiataCode;
    }
    /**
     * Set ShowGiataCode value
     * @param bool $showGiataCode
     * @return \StructType\JP_HotelDataAdvancedOptions
     */
    public function setShowGiataCode($showGiataCode = null)
    {
        // validation for constraint: boolean
        if (!is_null($showGiataCode) && !is_bool($showGiataCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($showGiataCode, true), gettype($showGiataCode)), __LINE__);
        }
        $this->ShowGiataCode = $showGiataCode;
        return $this;
    }
    /**
     * Get OnlyDirectZone value
     * @return bool|null
     */
    public function getOnlyDirectZone()
    {
        return $this->OnlyDirectZone;
    }
    /**
     * Set OnlyDirectZone value
     * @param bool $onlyDirectZone
     * @return \StructType\JP_HotelDataAdvancedOptions
     */
    public function setOnlyDirectZone($onlyDirectZone = null)
    {
        // validation for constraint: boolean
        if (!is_null($onlyDirectZone) && !is_bool($onlyDirectZone)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($onlyDirectZone, true), gettype($onlyDirectZone)), __LINE__);
        }
        $this->OnlyDirectZone = $onlyDirectZone;
        return $this;
    }
}
