<?php

namespace App\Services\QBWC;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for getLastErrorResponse StructType
 * @subpackage Structs
 */
class GetLastErrorResponse extends AbstractStructBase
{
    /**
     * The getLastErrorResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $getLastErrorResult;
    /**
     * Constructor method for getLastErrorResponse
     * @uses GetLastErrorResponse::setGetLastErrorResult()
     * @param string $getLastErrorResult
     */
    public function __construct($getLastErrorResult = null)
    {
        $this
            ->setGetLastErrorResult($getLastErrorResult);
    }
    /**
     * Get getLastErrorResult value
     * @return string|null
     */
    public function getGetLastErrorResult()
    {
        return $this->getLastErrorResult;
    }
    /**
     * Set getLastErrorResult value
     * @param string $getLastErrorResult
     * @return \App\Services\QBWC\GetLastErrorResponse
     */
    public function setGetLastErrorResult($getLastErrorResult = null)
    {
        // validation for constraint: string
        if (!is_null($getLastErrorResult) && !is_string($getLastErrorResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($getLastErrorResult, true), gettype($getLastErrorResult)), __LINE__);
        }
        $this->getLastErrorResult = $getLastErrorResult;
        return $this;
    }
}
