<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GeneralMessageSubscriptionStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Subscription for General Message Service.
 * @subpackage Structs
 */
class GeneralMessageSubscriptionStructure extends AbstractSubscriptionStructure
{
    /**
     * The GeneralMessageRequest
     * Meta informations extracted from the WSDL
     * - ref: GeneralMessageRequest
     * @var \StructType\GeneralMessageRequestStructure
     */
    public $GeneralMessageRequest;
    /**
     * The Extensions
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - ref: Extensions
     * @var \StructType\ExtensionsStructure
     */
    public $Extensions;
    /**
     * Constructor method for GeneralMessageSubscriptionStructure
     * @uses GeneralMessageSubscriptionStructure::setGeneralMessageRequest()
     * @uses GeneralMessageSubscriptionStructure::setExtensions()
     * @param \StructType\GeneralMessageRequestStructure $generalMessageRequest
     * @param \StructType\ExtensionsStructure $extensions
     */
    public function __construct(\StructType\GeneralMessageRequestStructure $generalMessageRequest = null, \StructType\ExtensionsStructure $extensions = null)
    {
        $this
            ->setGeneralMessageRequest($generalMessageRequest)
            ->setExtensions($extensions);
    }
    /**
     * Get GeneralMessageRequest value
     * @return \StructType\GeneralMessageRequestStructure|null
     */
    public function getGeneralMessageRequest()
    {
        return $this->GeneralMessageRequest;
    }
    /**
     * Set GeneralMessageRequest value
     * @param \StructType\GeneralMessageRequestStructure $generalMessageRequest
     * @return \StructType\GeneralMessageSubscriptionStructure
     */
    public function setGeneralMessageRequest(\StructType\GeneralMessageRequestStructure $generalMessageRequest = null)
    {
        $this->GeneralMessageRequest = $generalMessageRequest;
        return $this;
    }
    /**
     * Get Extensions value
     * @return \StructType\ExtensionsStructure|null
     */
    public function getExtensions()
    {
        return $this->Extensions;
    }
    /**
     * Set Extensions value
     * @param \StructType\ExtensionsStructure $extensions
     * @return \StructType\GeneralMessageSubscriptionStructure
     */
    public function setExtensions(\StructType\ExtensionsStructure $extensions = null)
    {
        $this->Extensions = $extensions;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \StructType\GeneralMessageSubscriptionStructure
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
