<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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