<?php

namespace GQ_\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for RetrieveSecurityTokenResponse Structs
 * @package GQ_
 * @subpackage Structs
 */
class GQ_RetrieveSecurityTokenResponse extends AbstractStructBase
{
    /**
     * The RetrieveSecurityTokenResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \GQ_\Structs\GQ_ViewSecurityToken
     */
    public $RetrieveSecurityTokenResult;
    /**
     * Constructor method for RetrieveSecurityTokenResponse
     * @uses GQ_RetrieveSecurityTokenResponse::setRetrieveSecurityTokenResult()
     * @param \GQ_\Structs\GQ_ViewSecurityToken $retrieveSecurityTokenResult
     */
    public function __construct(\GQ_\Structs\GQ_ViewSecurityToken $retrieveSecurityTokenResult = null)
    {
        $this
            ->setRetrieveSecurityTokenResult($retrieveSecurityTokenResult);
    }
    /**
     * Get RetrieveSecurityTokenResult value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \GQ_\Structs\GQ_ViewSecurityToken|null
     */
    public function getRetrieveSecurityTokenResult()
    {
        return isset($this->RetrieveSecurityTokenResult) ? $this->RetrieveSecurityTokenResult : null;
    }
    /**
     * Set RetrieveSecurityTokenResult value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \GQ_\Structs\GQ_ViewSecurityToken $retrieveSecurityTokenResult
     * @return \GQ_\Structs\GQ_RetrieveSecurityTokenResponse
     */
    public function setRetrieveSecurityTokenResult(\GQ_\Structs\GQ_ViewSecurityToken $retrieveSecurityTokenResult = null)
    {
        if (is_null($retrieveSecurityTokenResult) || (is_array($retrieveSecurityTokenResult) && empty($retrieveSecurityTokenResult))) {
            unset($this->RetrieveSecurityTokenResult);
        } else {
            $this->RetrieveSecurityTokenResult = $retrieveSecurityTokenResult;
        }
        return $this;
    }
}
