<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GeneralMessageServicePermissionStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for General MessageService Permission.
 * @subpackage Structs
 */
class GeneralMessageServicePermissionStructure extends AbstractPermissionStructure
{
    /**
     * The InfoChannelPermissions
     * @var \StructType\InfoChannelPermissions
     */
    public $InfoChannelPermissions;
    /**
     * The Extensions
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - ref: Extensions
     * @var \StructType\ExtensionsStructure
     */
    public $Extensions;
    /**
     * Constructor method for GeneralMessageServicePermissionStructure
     * @uses GeneralMessageServicePermissionStructure::setInfoChannelPermissions()
     * @uses GeneralMessageServicePermissionStructure::setExtensions()
     * @param \StructType\InfoChannelPermissions $infoChannelPermissions
     * @param \StructType\ExtensionsStructure $extensions
     */
    public function __construct(\StructType\InfoChannelPermissions $infoChannelPermissions = null, \StructType\ExtensionsStructure $extensions = null)
    {
        $this
            ->setInfoChannelPermissions($infoChannelPermissions)
            ->setExtensions($extensions);
    }
    /**
     * Get InfoChannelPermissions value
     * @return \StructType\InfoChannelPermissions|null
     */
    public function getInfoChannelPermissions()
    {
        return $this->InfoChannelPermissions;
    }
    /**
     * Set InfoChannelPermissions value
     * @param \StructType\InfoChannelPermissions $infoChannelPermissions
     * @return \StructType\GeneralMessageServicePermissionStructure
     */
    public function setInfoChannelPermissions(\StructType\InfoChannelPermissions $infoChannelPermissions = null)
    {
        $this->InfoChannelPermissions = $infoChannelPermissions;
        return $this;
    }
    /**
     * Get Extensions value
     * @return \StructType\ExtensionsStructure|null
     */
    public function getExtensions()
    {
        return $this->Extensions;
    }
    /**
     * Set Extensions value
     * @param \StructType\ExtensionsStructure $extensions
     * @return \StructType\GeneralMessageServicePermissionStructure
     */
    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\GeneralMessageServicePermissionStructure
     */
    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__;
    }
}
