<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_RentacarAvailAdvancedOptions StructType
 * @subpackage Structs
 */
class JP_RentacarAvailAdvancedOptions extends JP_AvailAdvancedOptions
{
    /**
     * The ShowAllOfficeCombinations
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var bool
     */
    public $ShowAllOfficeCombinations;
    /**
     * The ShowCancellationPolicies
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var bool
     */
    public $ShowCancellationPolicies;
    /**
     * Constructor method for JP_RentacarAvailAdvancedOptions
     * @uses JP_RentacarAvailAdvancedOptions::setShowAllOfficeCombinations()
     * @uses JP_RentacarAvailAdvancedOptions::setShowCancellationPolicies()
     * @param bool $showAllOfficeCombinations
     * @param bool $showCancellationPolicies
     */
    public function __construct($showAllOfficeCombinations = null, $showCancellationPolicies = null)
    {
        $this
            ->setShowAllOfficeCombinations($showAllOfficeCombinations)
            ->setShowCancellationPolicies($showCancellationPolicies);
    }
    /**
     * Get ShowAllOfficeCombinations value
     * @return bool|null
     */
    public function getShowAllOfficeCombinations()
    {
        return $this->ShowAllOfficeCombinations;
    }
    /**
     * Set ShowAllOfficeCombinations value
     * @param bool $showAllOfficeCombinations
     * @return \StructType\JP_RentacarAvailAdvancedOptions
     */
    public function setShowAllOfficeCombinations($showAllOfficeCombinations = null)
    {
        // validation for constraint: boolean
        if (!is_null($showAllOfficeCombinations) && !is_bool($showAllOfficeCombinations)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($showAllOfficeCombinations, true), gettype($showAllOfficeCombinations)), __LINE__);
        }
        $this->ShowAllOfficeCombinations = $showAllOfficeCombinations;
        return $this;
    }
    /**
     * Get ShowCancellationPolicies value
     * @return bool|null
     */
    public function getShowCancellationPolicies()
    {
        return $this->ShowCancellationPolicies;
    }
    /**
     * Set ShowCancellationPolicies value
     * @param bool $showCancellationPolicies
     * @return \StructType\JP_RentacarAvailAdvancedOptions
     */
    public function setShowCancellationPolicies($showCancellationPolicies = null)
    {
        // validation for constraint: boolean
        if (!is_null($showCancellationPolicies) && !is_bool($showCancellationPolicies)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($showCancellationPolicies, true), gettype($showCancellationPolicies)), __LINE__);
        }
        $this->ShowCancellationPolicies = $showCancellationPolicies;
        return $this;
    }
}
