<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetUserVariables StructType
 * @subpackage Structs
 */
class GetUserVariables extends AbstractStructBase
{
    /**
     * The strLoginToken
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $strLoginToken;
    /**
     * The variables
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\NineDotMedia\viapost-php\ArrayOfAnyType
     */
    public $variables;
    /**
     * The strReturnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $strReturnMessage;
    /**
     * Constructor method for GetUserVariables
     * @uses GetUserVariables::setStrLoginToken()
     * @uses GetUserVariables::setVariables()
     * @uses GetUserVariables::setStrReturnMessage()
     * @param string $strLoginToken
     * @param \\NineDotMedia\viapost-php\ArrayOfAnyType $variables
     * @param string $strReturnMessage
     */
    public function __construct($strLoginToken = null, \\NineDotMedia\viapost-php\ArrayOfAnyType $variables = null, $strReturnMessage = null)
    {
        $this
            ->setStrLoginToken($strLoginToken)
            ->setVariables($variables)
            ->setStrReturnMessage($strReturnMessage);
    }
    /**
     * Get strLoginToken value
     * @return string|null
     */
    public function getStrLoginToken()
    {
        return $this->strLoginToken;
    }
    /**
     * Set strLoginToken value
     * @param string $strLoginToken
     * @return \\NineDotMedia\viapost-php\GetUserVariables
     */
    public function setStrLoginToken($strLoginToken = null)
    {
        // validation for constraint: string
        if (!is_null($strLoginToken) && !is_string($strLoginToken)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($strLoginToken, true), gettype($strLoginToken)), __LINE__);
        }
        $this->strLoginToken = $strLoginToken;
        return $this;
    }
    /**
     * Get variables value
     * @return \\NineDotMedia\viapost-php\ArrayOfAnyType|null
     */
    public function getVariables()
    {
        return $this->variables;
    }
    /**
     * Set variables value
     * @param \\NineDotMedia\viapost-php\ArrayOfAnyType $variables
     * @return \\NineDotMedia\viapost-php\GetUserVariables
     */
    public function setVariables(\\NineDotMedia\viapost-php\ArrayOfAnyType $variables = null)
    {
        $this->variables = $variables;
        return $this;
    }
    /**
     * Get strReturnMessage value
     * @return string|null
     */
    public function getStrReturnMessage()
    {
        return $this->strReturnMessage;
    }
    /**
     * Set strReturnMessage value
     * @param string $strReturnMessage
     * @return \\NineDotMedia\viapost-php\GetUserVariables
     */
    public function setStrReturnMessage($strReturnMessage = null)
    {
        // validation for constraint: string
        if (!is_null($strReturnMessage) && !is_string($strReturnMessage)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($strReturnMessage, true), gettype($strReturnMessage)), __LINE__);
        }
        $this->strReturnMessage = $strReturnMessage;
        return $this;
    }
}
