<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetCustomSeatPricesResponse StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetCustomSeatPricesResponse
 * @subpackage Structs
 */
class GetCustomSeatPricesResponse extends ExtensibleDataContract
{
    /**
     * The CustomSeatPricesByArea
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidArrayOfKeyValueOfintMoneyWTEG5wMrox8ieOcg
     */
    public $CustomSeatPricesByArea;
    /**
     * Constructor method for GetCustomSeatPricesResponse
     * @uses GetCustomSeatPricesResponse::setCustomSeatPricesByArea()
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidArrayOfKeyValueOfintMoneyWTEG5wMrox8ieOcg $customSeatPricesByArea
     */
    public function __construct(\patest\ArrayType\ArrayOfKeyValueOfguidArrayOfKeyValueOfintMoneyWTEG5wMrox8ieOcg $customSeatPricesByArea = null)
    {
        $this
            ->setCustomSeatPricesByArea($customSeatPricesByArea);
    }
    /**
     * Get CustomSeatPricesByArea 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 \patest\ArrayType\ArrayOfKeyValueOfguidArrayOfKeyValueOfintMoneyWTEG5wMrox8ieOcg|null
     */
    public function getCustomSeatPricesByArea()
    {
        return isset($this->CustomSeatPricesByArea) ? $this->CustomSeatPricesByArea : null;
    }
    /**
     * Set CustomSeatPricesByArea 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 \patest\ArrayType\ArrayOfKeyValueOfguidArrayOfKeyValueOfintMoneyWTEG5wMrox8ieOcg $customSeatPricesByArea
     * @return \patest\StructType\GetCustomSeatPricesResponse
     */
    public function setCustomSeatPricesByArea(\patest\ArrayType\ArrayOfKeyValueOfguidArrayOfKeyValueOfintMoneyWTEG5wMrox8ieOcg $customSeatPricesByArea = null)
    {
        if (is_null($customSeatPricesByArea) || (is_array($customSeatPricesByArea) && empty($customSeatPricesByArea))) {
            unset($this->CustomSeatPricesByArea);
        } else {
            $this->CustomSeatPricesByArea = $customSeatPricesByArea;
        }
        return $this;
    }
}
