<?php

namespace \NineDotMedia\Viapost\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetUserVariablesResponse Struct
 * @subpackage Structs
 */
class GetUserVariablesResponse extends AbstractStructBase
{
    /**
     * The GetUserVariablesResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $GetUserVariablesResult;
    /**
     * The variables
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\NineDotMedia\Viapost\Array\ArrayOfAnyType
     */
    public $variables;
    /**
     * The strReturnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $strReturnMessage;
    /**
     * Constructor method for GetUserVariablesResponse
     * @uses GetUserVariablesResponse::setGetUserVariablesResult()
     * @uses GetUserVariablesResponse::setVariables()
     * @uses GetUserVariablesResponse::setStrReturnMessage()
     * @param bool $getUserVariablesResult
     * @param \\NineDotMedia\Viapost\Array\ArrayOfAnyType $variables
     * @param string $strReturnMessage
     */
    public function __construct($getUserVariablesResult = null, \\NineDotMedia\Viapost\Array\ArrayOfAnyType $variables = null, $strReturnMessage = null)
    {
        $this
            ->setGetUserVariablesResult($getUserVariablesResult)
            ->setVariables($variables)
            ->setStrReturnMessage($strReturnMessage);
    }
    /**
     * Get GetUserVariablesResult value
     * @return bool
     */
    public function getGetUserVariablesResult()
    {
        return $this->GetUserVariablesResult;
    }
    /**
     * Set GetUserVariablesResult value
     * @param bool $getUserVariablesResult
     * @return \\NineDotMedia\Viapost\Struct\GetUserVariablesResponse
     */
    public function setGetUserVariablesResult($getUserVariablesResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($getUserVariablesResult) && !is_bool($getUserVariablesResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($getUserVariablesResult, true), gettype($getUserVariablesResult)), __LINE__);
        }
        $this->GetUserVariablesResult = $getUserVariablesResult;
        return $this;
    }
    /**
     * Get variables value
     * @return \\NineDotMedia\Viapost\Array\ArrayOfAnyType|null
     */
    public function getVariables()
    {
        return $this->variables;
    }
    /**
     * Set variables value
     * @param \\NineDotMedia\Viapost\Array\ArrayOfAnyType $variables
     * @return \\NineDotMedia\Viapost\Struct\GetUserVariablesResponse
     */
    public function setVariables(\\NineDotMedia\Viapost\Array\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\Struct\GetUserVariablesResponse
     */
    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;
    }
}
