<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UserSecurityContext StructType
 * Meta informations extracted from the WSDL
 * - type: s2:UserSecurityContext
 * @subpackage Structs
 */
class UserSecurityContext extends AbstractStructBase
{
    /**
     * The Token
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var UserToken
     */
    public $Token;
    /**
     * The Identity
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var AspenContextIdentity
     */
    public $Identity;
    /**
     * Constructor method for UserSecurityContext
     * @uses UserSecurityContext::setToken()
     * @uses UserSecurityContext::setIdentity()
     * @param UserToken $token
     * @param AspenContextIdentity $identity
     */
    public function __construct(UserToken $token = null, AspenContextIdentity $identity = null)
    {
        $this
            -&gt;setToken($token)
            -&gt;setIdentity($identity);
    }
    /**
     * Get Token value
     * @return UserToken|null
     */
    public function getToken()
    {
        return $this-&gt;Token;
    }
    /**
     * Set Token value
     * @param UserToken $token
     * @return UserSecurityContext
     */
    public function setToken(UserToken $token = null)
    {
        $this-&gt;Token = $token;
        return $this;
    }
    /**
     * Get Identity value
     * @return AspenContextIdentity|null
     */
    public function getIdentity()
    {
        return $this-&gt;Identity;
    }
    /**
     * Set Identity value
     * @param AspenContextIdentity $identity
     * @return UserSecurityContext
     */
    public function setIdentity(AspenContextIdentity $identity = null)
    {
        $this-&gt;Identity = $identity;
        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 UserSecurityContext
     */
    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__;
    }
}
</pre></body></html>