<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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