<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for PermissionsStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for abstract permissions.
 * @subpackage Structs
 */
class PermissionsStructure extends AbstractStructBase
{
    /**
     * The PermissionVersionRef
     * Meta informations extracted from the WSDL
     * - documentation: Version of permission set.
     * - minOccurs: 0
     * @var \StructType\VersionRefStructure
     */
    public $PermissionVersionRef;
    /**
     * Constructor method for PermissionsStructure
     * @uses PermissionsStructure::setPermissionVersionRef()
     * @param \StructType\VersionRefStructure $permissionVersionRef
     */
    public function __construct(\StructType\VersionRefStructure $permissionVersionRef = null)
    {
        $this
            ->setPermissionVersionRef($permissionVersionRef);
    }
    /**
     * Get PermissionVersionRef value
     * @return \StructType\VersionRefStructure|null
     */
    public function getPermissionVersionRef()
    {
        return $this->PermissionVersionRef;
    }
    /**
     * Set PermissionVersionRef value
     * @param \StructType\VersionRefStructure $permissionVersionRef
     * @return \StructType\PermissionsStructure
     */
    public function setPermissionVersionRef(\StructType\VersionRefStructure $permissionVersionRef = null)
    {
        $this->PermissionVersionRef = $permissionVersionRef;
        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\PermissionsStructure
     */
    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__;
    }
}
