<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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