<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ConnectionLinkPermissionStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for CONNECTION link Permission.
 * @subpackage Structs
 */
class ConnectionLinkPermissionStructure extends AbstractTopicPermissionStructure
{
    /**
     * The ConnectionLinkRef
     * Meta informations extracted from the WSDL
     * - documentation: Reference to a CONNECTION link for which permission is made.
     * @var \StructType\ConnectionLinkRefStructure
     */
    public $ConnectionLinkRef;
    /**
     * Constructor method for ConnectionLinkPermissionStructure
     * @uses ConnectionLinkPermissionStructure::setConnectionLinkRef()
     * @param \StructType\ConnectionLinkRefStructure $connectionLinkRef
     */
    public function __construct(\StructType\ConnectionLinkRefStructure $connectionLinkRef = null)
    {
        $this
            ->setConnectionLinkRef($connectionLinkRef);
    }
    /**
     * Get ConnectionLinkRef value
     * @return \StructType\ConnectionLinkRefStructure|null
     */
    public function getConnectionLinkRef()
    {
        return $this->ConnectionLinkRef;
    }
    /**
     * Set ConnectionLinkRef value
     * @param \StructType\ConnectionLinkRefStructure $connectionLinkRef
     * @return \StructType\ConnectionLinkPermissionStructure
     */
    public function setConnectionLinkRef(\StructType\ConnectionLinkRefStructure $connectionLinkRef = null)
    {
        $this->ConnectionLinkRef = $connectionLinkRef;
        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\ConnectionLinkPermissionStructure
     */
    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__;
    }
}
