<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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