<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for HallDesignValidationFault StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:HallDesignValidationFault
 * @subpackage Structs
 */
class HallDesignValidationFault extends BasicFault
{
    /**
     * The AreaId
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var int
     */
    public $AreaId;
    /**
     * The AreaMapId
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var int
     */
    public $AreaMapId;
    /**
     * The HallId
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var int
     */
    public $HallId;
    /**
     * Constructor method for HallDesignValidationFault
     * @uses HallDesignValidationFault::setAreaId()
     * @uses HallDesignValidationFault::setAreaMapId()
     * @uses HallDesignValidationFault::setHallId()
     * @param int $areaId
     * @param int $areaMapId
     * @param int $hallId
     */
    public function __construct($areaId = null, $areaMapId = null, $hallId = null)
    {
        $this
            ->setAreaId($areaId)
            ->setAreaMapId($areaMapId)
            ->setHallId($hallId);
    }
    /**
     * Get AreaId value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return int|null
     */
    public function getAreaId()
    {
        return isset($this->AreaId) ? $this->AreaId : null;
    }
    /**
     * Set AreaId value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param int $areaId
     * @return \patest\StructType\HallDesignValidationFault
     */
    public function setAreaId($areaId = null)
    {
        // validation for constraint: int
        if (!is_null($areaId) && !(is_int($areaId) || ctype_digit($areaId))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($areaId, true), gettype($areaId)), __LINE__);
        }
        if (is_null($areaId) || (is_array($areaId) && empty($areaId))) {
            unset($this->AreaId);
        } else {
            $this->AreaId = $areaId;
        }
        return $this;
    }
    /**
     * Get AreaMapId value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return int|null
     */
    public function getAreaMapId()
    {
        return isset($this->AreaMapId) ? $this->AreaMapId : null;
    }
    /**
     * Set AreaMapId value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param int $areaMapId
     * @return \patest\StructType\HallDesignValidationFault
     */
    public function setAreaMapId($areaMapId = null)
    {
        // validation for constraint: int
        if (!is_null($areaMapId) && !(is_int($areaMapId) || ctype_digit($areaMapId))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($areaMapId, true), gettype($areaMapId)), __LINE__);
        }
        if (is_null($areaMapId) || (is_array($areaMapId) && empty($areaMapId))) {
            unset($this->AreaMapId);
        } else {
            $this->AreaMapId = $areaMapId;
        }
        return $this;
    }
    /**
     * Get HallId value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return int|null
     */
    public function getHallId()
    {
        return isset($this->HallId) ? $this->HallId : null;
    }
    /**
     * Set HallId value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param int $hallId
     * @return \patest\StructType\HallDesignValidationFault
     */
    public function setHallId($hallId = null)
    {
        // validation for constraint: int
        if (!is_null($hallId) && !(is_int($hallId) || ctype_digit($hallId))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($hallId, true), gettype($hallId)), __LINE__);
        }
        if (is_null($hallId) || (is_array($hallId) && empty($hallId))) {
            unset($this->HallId);
        } else {
            $this->HallId = $hallId;
        }
        return $this;
    }
}
