<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_HotelRoomContract StructType
 * @subpackage Structs
 */
class JP_HotelRoomContract extends AbstractStructBase
{
    /**
     * The Name
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Name;
    /**
     * The BrandRating
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $BrandRating;
    /**
     * The Description
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Description;
    /**
     * The Characteristics
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_ContractCharacteristics
     */
    public $Characteristics;
    /**
     * The Days
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_HotelRoomContractDayAvail
     */
    public $Days;
    /**
     * The IntCode
     * @var string
     */
    public $IntCode;
    /**
     * The IsSalesContract
     * @var bool
     */
    public $IsSalesContract;
    /**
     * The Type
     * @var string
     */
    public $Type;
    /**
     * The ExternalType
     * @var string
     */
    public $ExternalType;
    /**
     * Constructor method for JP_HotelRoomContract
     * @uses JP_HotelRoomContract::setName()
     * @uses JP_HotelRoomContract::setBrandRating()
     * @uses JP_HotelRoomContract::setDescription()
     * @uses JP_HotelRoomContract::setCharacteristics()
     * @uses JP_HotelRoomContract::setDays()
     * @uses JP_HotelRoomContract::setIntCode()
     * @uses JP_HotelRoomContract::setIsSalesContract()
     * @uses JP_HotelRoomContract::setType()
     * @uses JP_HotelRoomContract::setExternalType()
     * @param string $name
     * @param string $brandRating
     * @param string $description
     * @param \ArrayType\ArrayOfJP_ContractCharacteristics $characteristics
     * @param \ArrayType\ArrayOfJP_HotelRoomContractDayAvail $days
     * @param string $intCode
     * @param bool $isSalesContract
     * @param string $type
     * @param string $externalType
     */
    public function __construct($name = null, $brandRating = null, $description = null, \ArrayType\ArrayOfJP_ContractCharacteristics $characteristics = null, \ArrayType\ArrayOfJP_HotelRoomContractDayAvail $days = null, $intCode = null, $isSalesContract = null, $type = null, $externalType = null)
    {
        $this
            ->setName($name)
            ->setBrandRating($brandRating)
            ->setDescription($description)
            ->setCharacteristics($characteristics)
            ->setDays($days)
            ->setIntCode($intCode)
            ->setIsSalesContract($isSalesContract)
            ->setType($type)
            ->setExternalType($externalType);
    }
    /**
     * Get Name value
     * @return string|null
     */
    public function getName()
    {
        return $this->Name;
    }
    /**
     * Set Name value
     * @param string $name
     * @return \StructType\JP_HotelRoomContract
     */
    public function setName($name = null)
    {
        // validation for constraint: string
        if (!is_null($name) && !is_string($name)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name, true), gettype($name)), __LINE__);
        }
        $this->Name = $name;
        return $this;
    }
    /**
     * Get BrandRating value
     * @return string|null
     */
    public function getBrandRating()
    {
        return $this->BrandRating;
    }
    /**
     * Set BrandRating value
     * @param string $brandRating
     * @return \StructType\JP_HotelRoomContract
     */
    public function setBrandRating($brandRating = null)
    {
        // validation for constraint: string
        if (!is_null($brandRating) && !is_string($brandRating)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($brandRating, true), gettype($brandRating)), __LINE__);
        }
        $this->BrandRating = $brandRating;
        return $this;
    }
    /**
     * Get Description value
     * @return string|null
     */
    public function getDescription()
    {
        return $this->Description;
    }
    /**
     * Set Description value
     * @param string $description
     * @return \StructType\JP_HotelRoomContract
     */
    public function setDescription($description = null)
    {
        // validation for constraint: string
        if (!is_null($description) && !is_string($description)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($description, true), gettype($description)), __LINE__);
        }
        $this->Description = $description;
        return $this;
    }
    /**
     * Get Characteristics value
     * @return \ArrayType\ArrayOfJP_ContractCharacteristics|null
     */
    public function getCharacteristics()
    {
        return $this->Characteristics;
    }
    /**
     * Set Characteristics value
     * @param \ArrayType\ArrayOfJP_ContractCharacteristics $characteristics
     * @return \StructType\JP_HotelRoomContract
     */
    public function setCharacteristics(\ArrayType\ArrayOfJP_ContractCharacteristics $characteristics = null)
    {
        $this->Characteristics = $characteristics;
        return $this;
    }
    /**
     * Get Days value
     * @return \ArrayType\ArrayOfJP_HotelRoomContractDayAvail|null
     */
    public function getDays()
    {
        return $this->Days;
    }
    /**
     * Set Days value
     * @param \ArrayType\ArrayOfJP_HotelRoomContractDayAvail $days
     * @return \StructType\JP_HotelRoomContract
     */
    public function setDays(\ArrayType\ArrayOfJP_HotelRoomContractDayAvail $days = null)
    {
        $this->Days = $days;
        return $this;
    }
    /**
     * Get IntCode value
     * @return string|null
     */
    public function getIntCode()
    {
        return $this->IntCode;
    }
    /**
     * Set IntCode value
     * @param string $intCode
     * @return \StructType\JP_HotelRoomContract
     */
    public function setIntCode($intCode = null)
    {
        // validation for constraint: string
        if (!is_null($intCode) && !is_string($intCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($intCode, true), gettype($intCode)), __LINE__);
        }
        $this->IntCode = $intCode;
        return $this;
    }
    /**
     * Get IsSalesContract value
     * @return bool|null
     */
    public function getIsSalesContract()
    {
        return $this->IsSalesContract;
    }
    /**
     * Set IsSalesContract value
     * @param bool $isSalesContract
     * @return \StructType\JP_HotelRoomContract
     */
    public function setIsSalesContract($isSalesContract = null)
    {
        // validation for constraint: boolean
        if (!is_null($isSalesContract) && !is_bool($isSalesContract)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isSalesContract, true), gettype($isSalesContract)), __LINE__);
        }
        $this->IsSalesContract = $isSalesContract;
        return $this;
    }
    /**
     * Get Type value
     * @return string|null
     */
    public function getType()
    {
        return $this->Type;
    }
    /**
     * Set Type value
     * @uses \EnumType\JP_ContractType::valueIsValid()
     * @uses \EnumType\JP_ContractType::getValidValues()
     * @throws \InvalidArgumentException
     * @param string $type
     * @return \StructType\JP_HotelRoomContract
     */
    public function setType($type = null)
    {
        // validation for constraint: enumeration
        if (!\EnumType\JP_ContractType::valueIsValid($type)) {
            throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \EnumType\JP_ContractType', is_array($type) ? implode(', ', $type) : var_export($type, true), implode(', ', \EnumType\JP_ContractType::getValidValues())), __LINE__);
        }
        $this->Type = $type;
        return $this;
    }
    /**
     * Get ExternalType value
     * @return string|null
     */
    public function getExternalType()
    {
        return $this->ExternalType;
    }
    /**
     * Set ExternalType value
     * @param string $externalType
     * @return \StructType\JP_HotelRoomContract
     */
    public function setExternalType($externalType = null)
    {
        // validation for constraint: string
        if (!is_null($externalType) && !is_string($externalType)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($externalType, true), gettype($externalType)), __LINE__);
        }
        $this->ExternalType = $externalType;
        return $this;
    }
}
