<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for OperatorPermissionStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for OPERATOR Permission.
 * @subpackage Structs
 */
class OperatorPermissionStructure extends AbstractTopicPermissionStructure
{
    /**
     * The OperatorRef
     * Meta informations extracted from the WSDL
     * - documentation: Reference to an OPERATOR whose data participant is allowed to access.
     * @var \StructType\OperatorRefStructure
     */
    public $OperatorRef;
    /**
     * Constructor method for OperatorPermissionStructure
     * @uses OperatorPermissionStructure::setOperatorRef()
     * @param \StructType\OperatorRefStructure $operatorRef
     */
    public function __construct(\StructType\OperatorRefStructure $operatorRef = null)
    {
        $this
            ->setOperatorRef($operatorRef);
    }
    /**
     * Get OperatorRef value
     * @return \StructType\OperatorRefStructure|null
     */
    public function getOperatorRef()
    {
        return $this->OperatorRef;
    }
    /**
     * Set OperatorRef value
     * @param \StructType\OperatorRefStructure $operatorRef
     * @return \StructType\OperatorPermissionStructure
     */
    public function setOperatorRef(\StructType\OperatorRefStructure $operatorRef = null)
    {
        $this->OperatorRef = $operatorRef;
        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\OperatorPermissionStructure
     */
    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__;
    }
}
