<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for InfoChannelPermissionStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for Info Channel Permission.
 * @subpackage Structs
 */
class InfoChannelPermissionStructure extends AbstractTopicPermissionStructure
{
    /**
     * The InfoChannelRef
     * Meta informations extracted from the WSDL
     * - documentation: Reference to an Info Channel to which permission applies.
     * @var \StructType\InfoChannelRefStructure
     */
    public $InfoChannelRef;
    /**
     * Constructor method for InfoChannelPermissionStructure
     * @uses InfoChannelPermissionStructure::setInfoChannelRef()
     * @param \StructType\InfoChannelRefStructure $infoChannelRef
     */
    public function __construct(\StructType\InfoChannelRefStructure $infoChannelRef = null)
    {
        $this
            ->setInfoChannelRef($infoChannelRef);
    }
    /**
     * Get InfoChannelRef value
     * @return \StructType\InfoChannelRefStructure|null
     */
    public function getInfoChannelRef()
    {
        return $this->InfoChannelRef;
    }
    /**
     * Set InfoChannelRef value
     * @param \StructType\InfoChannelRefStructure $infoChannelRef
     * @return \StructType\InfoChannelPermissionStructure
     */
    public function setInfoChannelRef(\StructType\InfoChannelRefStructure $infoChannelRef = null)
    {
        $this->InfoChannelRef = $infoChannelRef;
        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\InfoChannelPermissionStructure
     */
    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__;
    }
}
