<?php

namespace GQ_\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ValidateSecurityTokenResponse Structs
 * @package GQ_
 * @subpackage Structs
 */
class GQ_ValidateSecurityTokenResponse extends AbstractStructBase
{
    /**
     * The ValidateSecurityTokenResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \GQ_\Structs\GQ_ViewValidatedSecurityToken
     */
    public $ValidateSecurityTokenResult;
    /**
     * Constructor method for ValidateSecurityTokenResponse
     * @uses GQ_ValidateSecurityTokenResponse::setValidateSecurityTokenResult()
     * @param \GQ_\Structs\GQ_ViewValidatedSecurityToken $validateSecurityTokenResult
     */
    public function __construct(\GQ_\Structs\GQ_ViewValidatedSecurityToken $validateSecurityTokenResult = null)
    {
        $this
            ->setValidateSecurityTokenResult($validateSecurityTokenResult);
    }
    /**
     * Get ValidateSecurityTokenResult 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_ViewValidatedSecurityToken|null
     */
    public function getValidateSecurityTokenResult()
    {
        return isset($this->ValidateSecurityTokenResult) ? $this->ValidateSecurityTokenResult : null;
    }
    /**
     * Set ValidateSecurityTokenResult 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_ViewValidatedSecurityToken $validateSecurityTokenResult
     * @return \GQ_\Structs\GQ_ValidateSecurityTokenResponse
     */
    public function setValidateSecurityTokenResult(\GQ_\Structs\GQ_ViewValidatedSecurityToken $validateSecurityTokenResult = null)
    {
        if (is_null($validateSecurityTokenResult) || (is_array($validateSecurityTokenResult) && empty($validateSecurityTokenResult))) {
            unset($this->ValidateSecurityTokenResult);
        } else {
            $this->ValidateSecurityTokenResult = $validateSecurityTokenResult;
        }
        return $this;
    }
}
