<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetEventPriceLevelsAndAvailability-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetEventPriceLevelsAndAvailability-Response
 * @subpackage Structs
 */
class GetEventPriceLevelsAndAvailability_Response extends ExtensibleDataContract
{
    /**
     * The AvailablePriceLevels
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfTicketing_PriceLevel
     */
    public $AvailablePriceLevels;
    /**
     * The SeatingPlanStatisticsByPriceLevelId
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidCapacityCountershpjoQDea
     */
    public $SeatingPlanStatisticsByPriceLevelId;
    /**
     * Constructor method for GetEventPriceLevelsAndAvailability-Response
     * @uses GetEventPriceLevelsAndAvailability_Response::setAvailablePriceLevels()
     * @uses GetEventPriceLevelsAndAvailability_Response::setSeatingPlanStatisticsByPriceLevelId()
     * @param \patest\ArrayType\ArrayOfTicketing_PriceLevel $availablePriceLevels
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidCapacityCountershpjoQDea $seatingPlanStatisticsByPriceLevelId
     */
    public function __construct(\patest\ArrayType\ArrayOfTicketing_PriceLevel $availablePriceLevels = null, \patest\ArrayType\ArrayOfKeyValueOfguidCapacityCountershpjoQDea $seatingPlanStatisticsByPriceLevelId = null)
    {
        $this
            ->setAvailablePriceLevels($availablePriceLevels)
            ->setSeatingPlanStatisticsByPriceLevelId($seatingPlanStatisticsByPriceLevelId);
    }
    /**
     * Get AvailablePriceLevels 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\ArrayOfTicketing_PriceLevel|null
     */
    public function getAvailablePriceLevels()
    {
        return isset($this->AvailablePriceLevels) ? $this->AvailablePriceLevels : null;
    }
    /**
     * Set AvailablePriceLevels 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\ArrayOfTicketing_PriceLevel $availablePriceLevels
     * @return \patest\StructType\GetEventPriceLevelsAndAvailability_Response
     */
    public function setAvailablePriceLevels(\patest\ArrayType\ArrayOfTicketing_PriceLevel $availablePriceLevels = null)
    {
        if (is_null($availablePriceLevels) || (is_array($availablePriceLevels) && empty($availablePriceLevels))) {
            unset($this->AvailablePriceLevels);
        } else {
            $this->AvailablePriceLevels = $availablePriceLevels;
        }
        return $this;
    }
    /**
     * Get SeatingPlanStatisticsByPriceLevelId 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\ArrayOfKeyValueOfguidCapacityCountershpjoQDea|null
     */
    public function getSeatingPlanStatisticsByPriceLevelId()
    {
        return isset($this->SeatingPlanStatisticsByPriceLevelId) ? $this->SeatingPlanStatisticsByPriceLevelId : null;
    }
    /**
     * Set SeatingPlanStatisticsByPriceLevelId 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\ArrayOfKeyValueOfguidCapacityCountershpjoQDea $seatingPlanStatisticsByPriceLevelId
     * @return \patest\StructType\GetEventPriceLevelsAndAvailability_Response
     */
    public function setSeatingPlanStatisticsByPriceLevelId(\patest\ArrayType\ArrayOfKeyValueOfguidCapacityCountershpjoQDea $seatingPlanStatisticsByPriceLevelId = null)
    {
        if (is_null($seatingPlanStatisticsByPriceLevelId) || (is_array($seatingPlanStatisticsByPriceLevelId) && empty($seatingPlanStatisticsByPriceLevelId))) {
            unset($this->SeatingPlanStatisticsByPriceLevelId);
        } else {
            $this->SeatingPlanStatisticsByPriceLevelId = $seatingPlanStatisticsByPriceLevelId;
        }
        return $this;
    }
}
